bpp-core3
3.0.0
|
Exception base class. Overload exception constructor (to control the exceptions mechanism). Destructor is already virtual (from std::exception) More...
#include <Bpp/Exceptions.h>
Public Member Functions | |
Exception (std::string text, int stack=10) | |
Build a new Exception. More... | |
const char * | what () const noexcept override |
Method to get the message of the exception (STL method redefinition). More... | |
const std::string & | message () const noexcept |
Access the message as a std::string. More... | |
Private Attributes | |
std::string | message_ |
Exception base class. Overload exception constructor (to control the exceptions mechanism). Destructor is already virtual (from std::exception)
Definition at line 20 of file Exceptions.h.
bpp::Exception::Exception | ( | std::string | text, |
int | stack = 10 |
||
) |
Build a new Exception.
text | A message to be passed to the exception hierarchy. |
stack | deep of the call stack |
Definition at line 16 of file Exceptions.cpp.
References message_.
|
noexcept |
Access the message as a std::string.
Definition at line 79 of file Exceptions.cpp.
References message_.
|
overridenoexcept |
Method to get the message of the exception (STL method redefinition).
Definition at line 78 of file Exceptions.cpp.
References message_.
|
private |
Definition at line 23 of file Exceptions.h.
Referenced by Exception(), message(), and what().