Bixby Developer Center



Provides a method for handling runtime exceptions.

var fail = require('fail');

fail.checkedError(message, errorId, errorObj)

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

messageStringThe message to display to the user
errorIdStringThe ID of the dev-defined error
errorObjObjectAn object containing properties for the dev-defined error