Leosac  0.8.0
Open Source Access Control
LEOSACException Class Reference

A base class for Leosac specific exception. More...

#include <leosacexception.hpp>

+ Inheritance diagram for LEOSACException:
+ Collaboration diagram for LEOSACException:

Public Member Functions

 LEOSACException (const std::string &message)
virtual ~LEOSACException ()
virtual const char * what () const noexcept final
const Leosac::Tools::Stacktracetrace () const
 Get the stacktrace associated with this exception. More...

Protected Attributes

std::string message_

Private Attributes

Leosac::Tools::Stacktrace trace_

Detailed Description

A base class for Leosac specific exception.

This exception class store a stacktrace of the program at the time it was instantiated (not at the time it was thrown).

Definition at line 40 of file leosacexception.hpp.

Constructor & Destructor Documentation

◆ LEOSACException()

LEOSACException::LEOSACException ( const std::string &  message)

Definition at line 43 of file leosacexception.hpp.

◆ ~LEOSACException()

virtual LEOSACException::~LEOSACException ( )

Definition at line 49 of file leosacexception.hpp.

Member Function Documentation

◆ trace()

const Leosac::Tools::Stacktrace& LEOSACException::trace ( ) const

Get the stacktrace associated with this exception.

Definition at line 61 of file leosacexception.hpp.

◆ what()

virtual const char* LEOSACException::what ( ) const

Definition at line 53 of file leosacexception.hpp.

Member Data Documentation

◆ message_

std::string LEOSACException::message_

Definition at line 67 of file leosacexception.hpp.

◆ trace_

Leosac::Tools::Stacktrace LEOSACException::trace_

Definition at line 70 of file leosacexception.hpp.

The documentation for this class was generated from the following file: