EtcPal
0.4.1
ETC Platform Abstraction Layer (EtcPal)
|
View other versions:
|
Exception representing bad access to an Expected instance.
Thrown when attempting to access Expected<T>::value() when Expected<T>::has_value() is false. Holds an etcpal::Error; this allows nicer access to error information than just having the etcpal_error_t code.
Public Member Functions | |
BadExpectedAccess (Error err) | |
Construct from a Error. More... | |
Error | error () const noexcept |
Get the error code which was contained in the associated Expected when the exception occurred. | |
|
inlineexplicit |
Construct from a Error.
May | throw std::bad_alloc. |