Support Class Library
A set of tools providing classes and utility
|
Base class for exceptions that could never be checked at compile-time. More...
#include "RuntimeException.h"
Public Member Functions | |
template<class T > | |
RuntimeException (T &&reason) | |
Construct an scl::exceptions::Exception from an error message. More... | |
const char *const | reason () const override |
Retrieve the reason. More... | |
const char * | what () const noexcept override |
Override that uses the user defined reason. More... | |
const char *const | type () const noexcept override |
A string describing the name of the exception class. More... | |
Protected Attributes | |
const char *const | _reason = "" |
The error message that comes with this Exception. More... | |
Base class for exceptions that could never be checked at compile-time.
Definition at line 13 of file RuntimeException.h.
|
inline |
Construct an scl::exceptions::Exception from an error message.
T | being the reason's type |
reason | being the error message |
Definition at line 28 of file RuntimeException.h.
|
inlineoverridevirtual |
Retrieve the reason.
Reimplemented from scl::exceptions::Throwable.
Definition at line 35 of file RuntimeException.h.
|
inlineoverridevirtualnoexcept |
A string describing the name of the exception class.
Implements scl::exceptions::Throwable.
Reimplemented in scl::exceptions::UninitializedMemoryAccess.
Definition at line 51 of file RuntimeException.h.
|
inlineoverridenoexcept |
Override that uses the user defined reason.
Definition at line 43 of file RuntimeException.h.
|
protected |
The error message that comes with this Exception.
Definition at line 19 of file RuntimeException.h.