This abstract class is used to create exceptions. More...
#include <Exception.h>
Public Member Functions | |
virtual | ~Exception () noexcept |
Default destructor. More... | |
virtual void | raise () const =0 |
This function throws the object as exception. More... | |
virtual const char * | what () const noexcept override |
This function returns the error message. More... | |
Protected Member Functions | |
Exception (const char *const &message) noexcept | |
Default constructor. More... | |
Exception (const Exception &ex) noexcept | |
Default copy constructor. More... | |
Exception & | operator= (const Exception &ex) noexcept |
Assigment operation. More... | |
This abstract class is used to create exceptions.
|
virtualnoexcept |
Default destructor.
|
protectednoexcept |
Default constructor.
message | A error message. This message pointer is copied. |
Default copy constructor.
ex | Exception that will be copied. |
Assigment operation.
ex | Exception that will be copied. |
|
pure virtual |
This function throws the object as exception.
Implemented in NotEnoughMemoryException, and BadParamException.
|
overridevirtualnoexcept |
This function returns the error message.