Catching errors by using error event handlers
Use error event handlers to catch errors at any point in a client-side human service and
to implement error handling logic for these errors. To catch a specific error, you can set the
implementation error properties in the error event handler by specifying the error code and mapping
the error data to a specified variable.
About this task
Depending on
what logic you implement in the error event handler, the execution of the nested client-side human
service can end differently.
Stay-On-Page Event
- When you use a stay-on-page event after a coach in the error event handler, the stay-on-page event takes the flow back to the latest displayed coach in the service that contains the error event handler or in an ancestor client-side human service. The stay-on-page event does not return the flow to a coach within the error event handler. The coach to which the flow is returned is determined from the client-side human service where the error is caught, not where it is thrown.
End Event
- When you use an end event in the error event handler, the end event ends the flow of the nested service, and the execution continues in the parent service, following the flow out of the nested service activity.
Error End Event
- When you use an error end event in the error event handler, the error end event ends the flow of the nested service, but the execution can continue in the parent service if it catches the error that is thrown.
Procedure
To add an error event handler to the client-side human service: