Provides a method for handling runtime exceptions.
var fail = require('fail');
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 fail
Returns: Object
Access: Public
Parameter | Type | Description |
---|---|---|
message | String | The message to display to the user |
errorId | String | The ID of the dev-defined error |
errorObj | Object | An object containing properties for the dev-defined error |