Extension SDK 9.0.5

oracle.jdeveloper.cm.ds.db
Class DBException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byoracle.jdeveloper.cm.ds.db.DBException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ValidationException

public class DBException
extends java.lang.Exception

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.

See Also:
Serialized Form

Constructor Summary
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(java.lang.Throwable cause)
          Constructs a new DBException wrapping a throwable, without an object.
 
Method Summary
 DBObject getObject()
          The object on which this exception occurred.
 
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

DBException

public DBException(DBObject obj,
                   java.lang.String msg)
Constructs a new DBException on the specified object with the specified message.

Parameters:
obj - the object on which the exception occurred.
msg - the message describing the exception.

DBException

public 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

Parameters:
obj - the object on which the exception occurred.
msg - the message describing the exception.
cause - the root cause of the exception

DBException

public DBException(java.lang.Throwable cause)
Constructs a new DBException wrapping a throwable, without an object. This constructor can be used to report errors that are not associated with a specific object - for example, when getting a list of objects from a DBObjectProvider.

Parameters:
cause - the Throwable that represents the underlying problem.
Method Detail

getObject

public DBObject getObject()
The object on which this exception occurred.

Returns:
the DBObject on which this exception occurred.

Extension SDK

 

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