Portlet Factory, Version 6.1.2
Example: catching a timeout exception
You can handle the case in which a service call or SQL transaction takes longer than the specified timeout value.
Add an Error Handler builder and a Method builder to your model. The Error Handler builder performs a try and catch operation on the specified model action and the method determines what to do in the event the specified action fails.
One way of catching a timeout error for a service call or SQL statement is write a method to handle the error and use the Error Handler builder to run the method. This is the general process of handling errors in IBM® WebSphere Portlet Factory applications.
Parent topic: Advanced error handling techniques
- Catching a timeout exception
Perform the following steps to catch a timeout exception.
- Testing the error handler
To test the error handler, follow these steps.
- Error Handler builder
Use the Error Handler builder to catch errors that occur in a model.
Library | Support |