Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.2.0)

E17483-03


oracle.adf.model.binding
Class DCErrorHandlerImpl

java.lang.Object
  extended by oracle.adf.model.binding.DCErrorHandlerImpl

All Implemented Interfaces:
DCCachingErrorHandler, DCErrorHandler, DCErrorMessageHandler

public class DCErrorHandlerImpl
extends java.lang.Object
implements DCCachingErrorHandler, DCErrorMessageHandler

Implements a default error handling class for the ADF framework. This handler caches the exception in the bindingContainer and then if 'Throw' flag is set, throws exceptions it receives as JboExceptions (by creating a JboException if required).

See Also:
JboException, JUErrorHandler

Constructor Summary
DCErrorHandlerImpl(boolean setToThrow)
           

 

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)
          Returns the exception message.
 boolean isThrowFlag()
           
 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).
 void setThrowFlag(boolean flag)
           
protected  boolean skipException(java.lang.Exception ex)
          If an exception is a RowValException or a TxnValException and they have nested exceptions, then do not display it.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

DCErrorHandlerImpl

public DCErrorHandlerImpl(boolean setToThrow)

Method Detail

isThrowFlag

public boolean isThrowFlag()
Specified by:
isThrowFlag in interface DCCachingErrorHandler

setThrowFlag

public void setThrowFlag(boolean flag)
Specified by:
setThrowFlag in interface DCCachingErrorHandler
For internal use only. Application developers should not use this
*** For internal framework use only ***

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

skipException

protected boolean skipException(java.lang.Exception ex)
If an exception is a RowValException or a TxnValException and they have nested exceptions, then do not display it.

getDisplayMessage

public java.lang.String getDisplayMessage(BindingContext ctx,
                                          java.lang.Exception th)
Returns the exception message. In case of JboWarning or JboException, returns the message without product codes prefixed to the message.
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.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.2.0)

E17483-03


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