Handler for case when empty error is accessed.
Handler for case when empty value is accessed.
static assert(!isDefaultConstructorEnabled!Throw); static assert(hasOnAccessEmptyValue!(Throw, string)); static assert(hasOnAccessEmptyValue!(Throw, int)); static assert(hasOnAccessEmptyError!Throw); assertThrown!(Unexpected!string)(ok!(string, Throw)(42).error); assertThrown!(Unexpected!string)(err!(int, Throw)("foo").value); assertThrown!(Unexpected!int)(err!(bool, Throw)(-1).value);
Hook implementation that throws exceptions instead of default assert behavior.