Using a custom error handler to customize how exceptions are reported to the ViewController

You can alter the way error messages are reported to the ADF Controller by implementing a custom error handler class that extends the oracle.adf.model.binding.DCErrorHandlerImpl class. The custom error handler class can then provide custom implementations for the following methods:

  • reportException(): This method is called by the ADF framework to report an exception. You can override this method to handle how each exception type is reported.
  • getDisplayMessage(): Returns the exception error message. You can override this method in order to change the error message.
  • getDetailedDisplayMessage(): Returns the exception error message details. You can ...

Get Oracle JDeveloper 11gR2 Cookbook 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.