Returns the value if present, otherwise throws an error.
supplier |
The supplier function to invoke if the optional is empty. |
Returns the value contained by the optional if present, otherwise throws the error provided by the supplier function. |