Expected.error

Returns the error value. May only be called when hasValue returns false.

If there is no error value, it calls hook's onAccessEmptyError.

It returns E.init when hook doesn't provide onAccessEmptyError.

struct Expected(T, E = string, Hook = Abort)
@property ref
inout(E)
error
inout
(
)
if (
!is(E == void) &&
(
!is(T == void)
)
)

Meta