On Error Section
Beginning with build 1.1.17, we’ve created On Error section where a list of actions can be defined so that whenever the API actions fails, the list of On Error action gets executed. In order to have a better view of the method actions which have failed, you can use the following tokens:
- [ActionId] - where the error occurred
- [ActionName]
- [ActionDescription]
- [ErrorType] - type of exception
- [ErrorMessage] - exception.Message
- [StackTrace]
Scenario:
- create a GET method with Load Entities SQL as action
- set on it an incorrect select sql statement
- add Send Email action on the On Error section
- use in the body of the email the tokens posted above
- execute the method you’ve created and check the email