|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
oracle.javatools.db.DBException
public class DBException
An Exception that is thrown by a DB model operation. DBExceptions can
wrap another exception. For example, operations against a JDBC Database
may result in a SQLException; this SQLException can be wrapped in a
DBException for reporting back to callers.
DBExceptions can be chained so that operations such as validation, or the
creation of multiple objects can result in numberous errors reported.
| Constructor Summary | |
|---|---|
protected |
DBException()
Allows subclasses to deal with objects/messages as appropriate. |
|
DBException(DBObject obj,
java.lang.String msg)
Constructs a new DBException on the specified object with the specified message. |
|
DBException(DBObject obj,
java.lang.String msg,
java.lang.Throwable cause)
Constructs a new DBException on the specified object with the specified message and wrapping the specified throwable |
|
DBException(DBObject obj,
java.lang.Throwable cause)
Constructs a new DBException on the specified object wrapping the specified throwable |
|
DBException(java.lang.Throwable cause)
Constructs a new DBException wrapping a throwable, without an object. |
| Method Summary | |
|---|---|
DBException |
getNextException()
Retrieves the exception chained to this DBException object. |
DBObject |
getObject()
The object on which this exception occurred. |
void |
setNextException(DBException ex)
Adds an DBException object to the end of the chain. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DBException(DBObject obj,
java.lang.String msg)
obj - the object on which the exception occurred.msg - the message describing the exception.
public DBException(DBObject obj,
java.lang.String msg,
java.lang.Throwable cause)
obj - the object on which the exception occurred.msg - the message describing the exception.cause - the root cause of the exception
public DBException(DBObject obj,
java.lang.Throwable cause)
obj - the object on which the exception occurred.cause - the root cause of the exceptionpublic DBException(java.lang.Throwable cause)
cause - the Throwable that represents the underlying problem.protected DBException()
| Method Detail |
|---|
public DBObject getObject()
public DBException getNextException()
DBException object.
DBException object in the chain;
null if there are nonesetNextException(oracle.javatools.db.DBException)public void setNextException(DBException ex)
DBException object to the end of the chain.
ex - the new exception that will be added to the end of
the DBException chaingetNextException()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||