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