the value to resolve
the predicate that creates exception value cannot be resolved
import std.exception: assertThrown, assertNotThrown; "" .frontOrThrow(new Exception("")) .assertThrown!Exception; auto b = "yo" .frontOrThrow(new Exception("")) .assertNotThrown!Exception; assert(b == 'y');
Same as frontOr except it throws an error if it can't get the value