If a value is present, returns the value, otherwise throws an error produced by the supply function -- or an OptionalError.NOT_PRESENT error if the function is not specified.
error_supplier |
the supply function |
the value if present |
Error |
an error produced by the supply function if no value is present |