failure

Creates a failure response with the given exception.

Return

A Failure instance containing the exception.

Parameters

exception

The exception that caused the failure.