Represents an unexpected error value. More...
#include <Expected.hpp>
Public Member Functions | |
| Unexpected (ErrorType value) | |
| Full initialisation constructor. | |
Public Attributes | |
| ErrorType | value_ |
Represents an unexpected error value.
It encapsulates an error state when a computation or operation does not yield a valid value but instead produces an error. It is primarily used to signify and propagate error states in expected/optional-like patterns in an explicit and type-safe manner.
| ErrorType | The type used to represent the error value. |
|
explicit |
Full initialisation constructor.
| value | The error value to encapsulate. |
| ErrorType pecunia::Unexpected< ErrorType >::value_ |
Represents the underlying error value for an operation that failed or holds an invalid state.