Error handling is important part of every tool. We say error occurred when we don’t get desired response and error handling is used to handle that errors.
First of all, we need to understand the errors that can occur in Oracle Service Bus. We categories errors into two types.
1. Business Errors
2. Runtime Errors
Business Error is generated by us when some business conditions violates or we can say this error explicitly generated by us in the message flow. e.g. We receive empty card number
Runtime errors occur when we have some issue in the proxy, business service or message flow. These errors occur during run time.
We use error handlers in Oracle Service Bus to handle all types of errors. There are following types of error handlers in OSB.
An error is handled by the inner-most encompassing error handler. In other words, if there is no error handler configured at the level the error occurred then the error will be processed by the next level error handler. Below is an outline of how the error handlers are nested.
Stage Node -> Pipeline -> Proxy Service -> System Error Handler
Route Node -> Proxy Service -> System Error Handler