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.

  1. inout(E) error [@property getter]
    struct Expected(T, E = string, Hook = Abort)
    @property ref inout
    static if(!isChecked!Hook)
    inout(E)
    error
    ()
    if (
    !is(E == void) &&
    (
    !is(T == void)
    )
    )
  2. E error [@property getter]

Meta