|
Support Class Library
A set of tools providing classes and utility
|
Base class for all regular exceptions. More...
#include "Exception.h"


Public Member Functions | |
| template<class T > | |
| Exception (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 all regular exceptions.
Definition at line 12 of file Exception.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 27 of file Exception.h.
|
inlineoverridevirtual |
Retrieve the reason.
Reimplemented from scl::exceptions::Throwable.
Definition at line 34 of file Exception.h.
|
inlineoverridevirtualnoexcept |
A string describing the name of the exception class.
Implements scl::exceptions::Throwable.
Reimplemented in scl::exceptions::InvalidAnyCast, scl::exceptions::InvalidArgument, scl::exceptions::InvalidCast, scl::exceptions::OutOfBound, scl::exceptions::InvalidEitherAccess, scl::exceptions::InvalidResultAccess, and scl::exceptions::NonNullViolation.
Definition at line 50 of file Exception.h.
|
inlineoverridenoexcept |
Override that uses the user defined reason.
Definition at line 42 of file Exception.h.
|
protected |
The error message that comes with this Exception.
Definition at line 18 of file Exception.h.
1.8.13