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 override this method in order to change the error message details.
This recipe shows you how to extend the DCErrorHandlerImpl
error handling class so that you can provide custom handling and reporting of the application exceptions to the ViewController...