Returns the value for success and throws the error on failure.
value
throw
error
Prefer using when.
Success valueOrThrow();