14 return "scl::exceptions::InvalidResultAccess";
static InvalidResultAccess okWhenErr()
Helper function that creates an InvalidResultAccess when trying to access Ok when Err...
Global namespace of the SCL.
Exception(T &&reason)
Construct an scl::exceptions::Exception from an error message.
Exception class used when attempting to access the wrong type stored in an scl::utils::Either.
Base class for all regular exceptions.
static InvalidResultAccess errWhenOk()
Helper function that creates an InvalidResultAccess when trying to access Err when Ok is active...
const char *const type() const noexcept override
A string describing the name of the exception class.