Return the value of the success case or fail with the exception returned from the "block" block.
Return the value of the success case or null.
Return the value of the success case or throws the exception.
Creates a new Result with the value mapped to a new type.
Creates a new Result with the exception mapped to a new type.
Calls block if the result is a Failure.
Provides a way to recover from a failure. The transform block is only called if the result is a Failure.