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 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 |
Copyright 2024 Samsung All rights reserved