Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1)

E10653-04

oracle.adf.model.binding
Class DCErrorHandlerThrow

java.lang.Object
  extended by oracle.adf.model.binding.DCErrorHandlerThrow
All Implemented Interfaces:
DCErrorHandler, DCErrorMessageHandler

public class DCErrorHandlerThrow
extends java.lang.Object
implements DCErrorMessageHandler

Implements a default error handling class for the ADF framework. This handler simply throws exceptions it receives as JboExceptions (by creating a JboException if required).

See Also:
JboException, JUErrorHandler

Constructor Summary
DCErrorHandlerThrow()
           
 
Method Summary
 DCErrorMessage getDetailedDisplayMessage(BindingContext ctx, RegionBinding ctr, java.lang.Exception ex)
          Returns application specific details about the given exception.
 java.lang.String getDisplayMessage(BindingContext ctx, java.lang.Exception th)
          Given an exception or an error, process it and return a formatted message string for the given locale.
 void reportException(DCBindingContainer formBnd, java.lang.Exception ex)
          This method simply throws the exception 'ex' as a JboException (by creating a new JboException if required).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DCErrorHandlerThrow

public DCErrorHandlerThrow()
Method Detail

reportException

public void reportException(DCBindingContainer formBnd,
                            java.lang.Exception ex)
This method simply throws the exception 'ex' as a JboException (by creating a new JboException if required).

Specified by:
reportException in interface DCErrorHandler

getDisplayMessage

public java.lang.String getDisplayMessage(BindingContext ctx,
                                          java.lang.Exception th)
Description copied from interface: DCErrorMessageHandler
Given an exception or an error, process it and return a formatted message string for the given locale.

Specified by:
getDisplayMessage in interface DCErrorMessageHandler

getDetailedDisplayMessage

public DCErrorMessage getDetailedDisplayMessage(BindingContext ctx,
                                                RegionBinding ctr,
                                                java.lang.Exception ex)
Returns application specific details about the given exception. This exception should be formatted as per the associated view layer requirements. Default implementation returns null. displayed in the detail panel of an exception dialog.

Specified by:
getDetailedDisplayMessage in interface DCErrorMessageHandler
Parameters:
ctx - BindingContext for the usage that raised this exception.
ctr - BindingContainer that is associated with the UI that caused this exception.
ex - Exception for which detailed display message is asked for.

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1)

E10653-04

Copyright © 1997, 2010, Oracle. All rights reserved.