Documentation
Dlang.org
Expected.error
expectations
Expected
Returns the error value. May only be called when
hasValue
returns
false
.
struct
Expected
(T, E = Exception)
inout
(
E
)
error
inout
(
)
in { assert (!hasValue); }
if
(
!
is
(
T
==
E
) &&
!
is
(
T
==
void
)
)
Meta
Source
See Implementation
expectations
Expected
constructors
this
functions
error
hasValue
opAssign
opEquals
value
valueOr
Returns the error value. May only be called when hasValue returns false.