Failure
The database reported error and the operation produced no value.
Functions
Link copied to clipboard
Returns the carried value, or what onFailure makes of the whole DataResult.Failure - which it can return as it is, for an early exit:
Link copied to clipboard
Returns the carried value, or throws the carried failure.
Link copied to clipboard
Applies transform to the value of a DataResult.Success, and returns a DataResult.Failure as it stands.
Link copied to clipboard
Runs action on the failure if this is a DataResult.Failure, and returns this result either way.
Link copied to clipboard
Runs action on the carried value if this is a DataResult.Success, and returns this result either way.