Support Class Library
A set of tools providing classes and utility
|
Exception class used when attempting to access the wrong type stored in an scl::utils::Either. More...
#include "InvalidEitherAccess.h"
Public Member Functions | |
const char *const | type () const noexcept override |
A string describing the name of the exception class. More... | |
Public Member Functions inherited from scl::exceptions::Exception | |
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... | |
Static Public Member Functions | |
static InvalidEitherAccess | leftWhenRight () |
Helper function that creates an InvaidEitherAccess when trying to access Lhs when Rhs is active. More... | |
static InvalidEitherAccess | rightWhenLeft () |
Helper function that creates an InvaidEitherAccess when trying to access Rhs when Lhs is active. More... | |
Additional Inherited Members | |
Protected Attributes inherited from scl::exceptions::Exception | |
const char *const | _reason = "" |
The error message that comes with this Exception. More... | |
Exception class used when attempting to access the wrong type stored in an scl::utils::Either.
Definition at line 10 of file InvalidEitherAccess.h.
|
inlinestatic |
Helper function that creates an InvaidEitherAccess when trying to access Lhs when Rhs is active.
Definition at line 21 of file InvalidEitherAccess.h.
|
inlinestatic |
Helper function that creates an InvaidEitherAccess when trying to access Rhs when Lhs is active.
Definition at line 29 of file InvalidEitherAccess.h.
|
inlineoverridevirtualnoexcept |
A string describing the name of the exception class.
Reimplemented from scl::exceptions::Exception.
Definition at line 13 of file InvalidEitherAccess.h.