Adding an exception handler

An exception handler is the central place for handling unexpected exceptions in an application. For example, a method activity defined in a task flow may throw some business or runtime exceptions when specific conditions are not met at runtime. ADF allows you to handle such erroneous scenarios in a more user friendly way by designating one activity in a bounded or unbounded task flow as an exception handler.

To mark an activity as an exception handler, right-click on the desired activity in the task flow and select Mark Activity | Exception Handler.

An exception handler can be specified for a bounded or unbounded task flow. At runtime, when an error is thrown from some activity inside a bounded task flow, the framework ...

Get Oracle ADF Real World Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.