Exception handling in ADF can be done at following three places:
a. Taskflow Exception Handler
b. Extending Controller level ExceptionHandler - for controller level exceptions
c. Extending DCErrorHandlerImpl- for model
- Whenever there is an exception in model layer it is being handled by custom class extending DCErrorHandlerImpl.
- Exception in ADF Controller can be handled by creating a custom class extending Controller level ExceptionHandler.
- If an exception rethrown from above, it can be handled at TaskFlow level exception handler which can be a view activity, router or a method call.
One by one let`s discuss all of them: