Provides a method for handling runtime exceptions.
var fail = require('fail')
import fail from 'fail'
The following sections describe the available methods within this module. Each section includes a table that lists the parameters for that method, as well as the parameter's type and description.
Create a failure for a checked error declared and handled by the action.
If you are configuring a checked error for a remote endpoint, see Error Handling in Configuring Endpoints.
Kind: Static method of
|message||The message to display to the user|
|errorId||The ID of the dev-defined error|
|errorObj||An object containing properties for the dev-defined error|