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

E17503-02

oracle.jbo
Class JboException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by oracle.adfnmc.AdfNmcException
                  extended by oracle.jbo.JboWarning
                      extended by oracle.jbo.JboException
All Implemented Interfaces:
JboMessage, MetaObjectBase, Properties
Direct Known Subclasses:
AfterCommitException, AfterPostException, AfterRollbackException, AlreadyConnectedException, AMCJboException, AttributeLoadException, CreateRowPrivilegeException, CustomClassNotFoundException, DeadEntityAccessException, DeadViewRowAccessException, DMLException, HiddenDefException, InvalidObjAccessException, InvalidObjNameException, InvalidOperException, InvalidOwnerException, InvalidParamException, JboAssert, JIException, KeyNotFoundException, NameClashException, NoDefException, NoObjException, NotConnectedException, PCollException, PersistenceException, ReadOnlyViewObjectException, RemoveRowPrivilegeException, RemoveWithDetailsException, RowCreateException, RowInconsistentException, RowNotFoundException, SQLStmtException, TooManyObjectsException, ValidationException, ViewLinkAlreadyExistsException

public class JboException
extends JboWarning


Field Summary
protected  boolean mHasPeerException
           
 
Fields inherited from class oracle.jbo.JboWarning
mHelper, SEVERITY_ERROR, SEVERITY_RECOVERABLE_ERROR, SEVERITY_VETOABLE_WARNING, SEVERITY_WARNING
 
Fields inherited from class oracle.adfnmc.AdfNmcException
CLASS_INSTANCE, PRIORITY_HIGH, PRIORITY_LOW, PRIORITY_MEDIUM
 
Fields inherited from interface oracle.jbo.common.MetaObjectBase
TYP_APP_MODULE, TYP_ATTRIBUTE, TYP_ATTRIBUTE_LIST_WITH_DEF, TYP_COMPONENT_OBJECT, TYP_DATA_CONTROL, TYP_DEF_ANY, TYP_DEF_APP_MODULE, TYP_DEF_ASSOC_END, TYP_DEF_ATTRIBUTE, TYP_DEF_COMPONENT_OBJECT, TYP_DEF_DOMAIN, TYP_DEF_ENTITY_ASSOC, TYP_DEF_ENTITY_OBJECT, TYP_DEF_KEY, TYP_DEF_LIST_BINDING, TYP_DEF_METHOD, TYP_DEF_PACKAGE, TYP_DEF_VIEW_ACCESSOR, TYP_DEF_VIEW_LINK, TYP_DEF_VIEW_OBJECT, TYP_DOMAIN, TYP_ENTITY_ASSOC, TYP_ENTITY_OBJECT, TYP_ENTITY_ROW, TYP_ENTITY_ROW_SET, TYP_ENTITY_ROW_SET_ITERATOR, TYP_ENTITY_USAGE, TYP_PACKAGE, TYP_PERS_DEF_APP_MODULE, TYP_PERS_DEF_ATTRIBUTE, TYP_PERS_DEF_COMPONENT_OBJECT, TYP_PERS_DEF_DOMAIN, TYP_PERS_DEF_ENTITY_ASSOC, TYP_PERS_DEF_ENTITY_OBJECT, TYP_PERS_DEF_OFFSET, TYP_PERS_DEF_PACKAGE, TYP_PERS_DEF_VIEW_LINK, TYP_PERS_DEF_VIEW_OBJECT, TYP_SORT_CRITERIA, TYP_TRANSACTION, TYP_VALIDATOR_TYPE, TYP_VARIABLE, TYP_VARIABLE_WHERE_CLAUSE, TYP_VIEW_CRITERIA, TYP_VIEW_LINK, TYP_VIEW_OBJECT, TYP_VIEW_ROW, TYP_VIEW_ROW_SET, TYP_VIEW_ROW_SET_ITERATOR
 
Constructor Summary
JboException(java.lang.Class callingClass, java.lang.String callingMethod, java.lang.Class resBundleClass, java.lang.String errorCode, java.lang.Object[] params)
          Creates a translatable exception.
JboException(java.lang.Class callingClass, java.lang.String callingMethod, java.lang.Class resBundleClass, java.lang.String errorCode, java.lang.Object[] params, java.lang.Exception[] excs)
          Creates a translatable exception.
JboException(java.lang.Class callingClass, java.lang.String callingMethod, java.lang.Class resBundleClass, java.lang.String errorCode, java.lang.Object[] params, JboException[] exceptions)
          Creates a translatable exception.
JboException(java.lang.Class callingClass, java.lang.String callingMethod, ResourceBundleDef resBundleDef, java.lang.String errorCode, java.lang.Object[] params)
          Creates a translatable exception.
JboException(java.lang.Class callingClass, java.lang.String callingMethod, java.lang.String message)
          Create a non-formattable exception.
JboException(java.lang.Class callingClass, java.lang.String callingMethod, java.lang.String message, java.lang.String errorCode, java.lang.Object[] params)
          Creates a formattable but non-localizable exception.
JboException(java.lang.Class callingClass, java.lang.String callingMethod, java.lang.Throwable ex)
          Converts an exception into a non-formattable JboException.
JboException(java.lang.Class callingClass, java.lang.String callingMethod, java.lang.Throwable cause, java.lang.Class resBundleClass, java.lang.String errorCode, java.lang.Object[] params)
           
JboException(java.lang.Class callingClass, java.lang.String callingMethod, java.lang.Throwable ex, java.lang.String message, java.lang.Object[] params)
           
 
Method Summary
 void addToExceptions(java.lang.Throwable exception)
          Adds an exception to the list of detail exceptions.
 void doEntityToVOMapping(ApplicationModule rootAm, ViewObject[] vos)
           
 java.lang.Throwable[] getExceptions()
           
protected  void getStringContent(java.lang.StringBuffer buffer)
           
 boolean hasPeerExceptions()
           
 boolean needsEntityToVOMapping()
           
 void setExceptions(java.lang.Throwable[] details)
           
 void setNeedsEntityToVOMapping(boolean flag)
           
 
Methods inherited from class oracle.jbo.JboWarning
addToDetails, getBaseMessage, getCause, getDetailMessage, getDetails, getErrorCode, getErrorParameters, getJboExceptionHelper, getLocalizedBaseMessage, getLocalizedMessage, getMessage, getProductCode, getProperties, getProperty, getProperty, getResourceClass, getResourceName, getSeverity, getTypeNameFromId, isAppendCodes, isLocalizable, isWarning, refreshProperty, setAppendCodes, setDetails, setErrorParameters, setErrorParametersMap, setLocaleContext, setProperty, setSeverity
 
Methods inherited from class oracle.adfnmc.AdfNmcException
addLogMessage, addLogMessage, getCallerInfo, getPriority, getStringContent, isFatal, printLogMessages, setFatal, setInnerException, setPriority, toLogString, toString
 
Methods inherited from class java.lang.Throwable
printStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mHasPeerException

protected boolean mHasPeerException
Constructor Detail

JboException

public JboException(java.lang.Class callingClass,
                    java.lang.String callingMethod,
                    java.lang.Class resBundleClass,
                    java.lang.String errorCode,
                    java.lang.Object[] params,
                    java.lang.Exception[] excs)
Creates a translatable exception. Sets this exception as an exception that bundles peer exceptions. An exception created using this constructor will return true when hasPeerExceptions() method is invoked on it.

**Primarily for use by Oracle Applications.** BC4J framework does not use this exception nor throws such an exception.

Parameters:
resBundleClass - a subclass class of the ResourceBundle that will supply the message text.
errorCode - an error code associated with a message in the resource bundle.
params - the error message's parameters.
excs - An array if exceptions that this exception bundles as peer exceptions.
Since:
5.0
See Also:
java.util.ResourceBundle

JboException

public JboException(java.lang.Class callingClass,
                    java.lang.String callingMethod,
                    java.lang.Class resBundleClass,
                    java.lang.String errorCode,
                    java.lang.Object[] params,
                    JboException[] exceptions)
Creates a translatable exception.

Parameters:
resBundleClass - a subclass class of the ResourceBundle that will supply the message text.
errorCode - an error code associated with a message in the resource bundle.
params - the error message's parameters.
exceptions - array of exceptions that this collection exception contains.
See Also:
java.util.ResourceBundle

JboException

public JboException(java.lang.Class callingClass,
                    java.lang.String callingMethod,
                    java.lang.String message)
Create a non-formattable exception.

Parameters:
message - the text of the message.

JboException

public JboException(java.lang.Class callingClass,
                    java.lang.String callingMethod,
                    ResourceBundleDef resBundleDef,
                    java.lang.String errorCode,
                    java.lang.Object[] params)
Creates a translatable exception.

Parameters:
resBundleDef - a ResourceBundleDef.
errorCode - an error code associated with a message in the resource bundle.
params - the error message's parameters.
See Also:
java.util.ResourceBundle

JboException

public JboException(java.lang.Class callingClass,
                    java.lang.String callingMethod,
                    java.lang.Throwable ex)
Converts an exception into a non-formattable JboException.

Parameters:
ex - an exception to be added to the details list.

JboException

public JboException(java.lang.Class callingClass,
                    java.lang.String callingMethod,
                    java.lang.Throwable ex,
                    java.lang.String message,
                    java.lang.Object[] params)

JboException

public JboException(java.lang.Class callingClass,
                    java.lang.String callingMethod,
                    java.lang.Class resBundleClass,
                    java.lang.String errorCode,
                    java.lang.Object[] params)
Creates a translatable exception.

Parameters:
resBundleClass - a subclass class of the ResourceBundle that will supply the message text.
errorCode - an error code associated with a message in the resource bundle.
params - the error message's parameters.
See Also:
java.util.ResourceBundle

JboException

public JboException(java.lang.Class callingClass,
                    java.lang.String callingMethod,
                    java.lang.String message,
                    java.lang.String errorCode,
                    java.lang.Object[] params)
Creates a formattable but non-localizable exception.

If a localizable exception is desired, use the JboException(Class, String, Object[]) constructor.

Parameters:
message - the unformatted text of the message.
errorCode - an error code.
params - the error message's parameters.
See Also:
java.util.ResourceBundle

JboException

public JboException(java.lang.Class callingClass,
                    java.lang.String callingMethod,
                    java.lang.Throwable cause,
                    java.lang.Class resBundleClass,
                    java.lang.String errorCode,
                    java.lang.Object[] params)
Method Detail

setExceptions

public void setExceptions(java.lang.Throwable[] details)

getExceptions

public java.lang.Throwable[] getExceptions()

setNeedsEntityToVOMapping

public final void setNeedsEntityToVOMapping(boolean flag)

needsEntityToVOMapping

public final boolean needsEntityToVOMapping()

doEntityToVOMapping

public void doEntityToVOMapping(ApplicationModule rootAm,
                                ViewObject[] vos)

hasPeerExceptions

public final boolean hasPeerExceptions()

addToExceptions

public void addToExceptions(java.lang.Throwable exception)
Adds an exception to the list of detail exceptions.

Parameters:
exception - a Throwable exception object to add to the details list.

getStringContent

protected void getStringContent(java.lang.StringBuffer buffer)
Overrides:
getStringContent in class AdfNmcException

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

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.