22 #ifndef CRNEXCEPTION_HEADER
23 #define CRNEXCEPTION_HEADER
47 explicit Exception(
const char *msg) noexcept;
53 const std::string&
GetContext()
const noexcept;
55 const std::string&
GetMessage()
const noexcept;
57 virtual const char*
what()
const noexcept
override;
ExceptionRuntime() noexcept
Default constructor.
virtual ~Exception() noexceptoverride
Destructor.
const std::string & GetMessage() const noexcept
String containing a description of the exception.
Unintialized object error.
ExceptionInvalidArgument() noexcept
Default constructor.
ExceptionDimension() noexcept
Default constructor.
A protocol is not implemented.
ExceptionIO() noexcept
Default constructor.
const std::string & GetContext() const noexcept
String containing the call stack at the moment of throw.
static bool & TraceStack()
Shall the stack be traced at each exception thrown? (very slow)
ExceptionUninitialized() noexcept
Default constructor.
static void SetDefaultHandler()
Sets the default exception handler to print message and context to the standard error.
Exception() noexcept
Default constructor.
virtual const char * what() const noexceptoverride
String containing a description of the exception.
ExceptionTODO() noexcept
Default constructor.
A character string class.
ExceptionNotFound() noexcept
Default constructor.
Base class for exceptions.
ExceptionLogic() noexcept
Default constructor.
ExceptionDomain() noexcept
Default constructor.
Invalid argument error (e.g.: nullptr pointer)
An item was not found in a container.
ExceptionProtocol() noexcept
Default constructor.