|
Extension SDK | |||||||||
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.jdeveloper.cm.CMException
The CMException
class is designed generally to be a
wrapper class. That is, exceptions which
ConnectionManager
encounters during the course of
processing (with the exception of java.io.IOException
)
are usually wrapped within this class. This allows the
ConnectionManager
API to remain a little more simple.
Users do not need to concern themselves with the myriad of
different exceptions which can be thrown to the underlying connection
methodologies unless they wish to.
Field Summary | |
protected java.lang.Exception |
exception
The exception we are wrapping. |
Constructor Summary | |
CMException(java.lang.Exception exception)
Wraps the specified exception as a CMException |
|
CMException(java.lang.String err)
Constructs a CMException which is not a wrapper, but
rather simply contains a message. |
Method Summary | |
java.lang.String |
getMessage()
returns a String representing the error message contained within this exception. |
boolean |
isWrapper()
returns whether this CMException wraps another
exception. |
java.lang.Exception |
unwrap()
returns the wrapped exception. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.Exception exception
Constructor Detail |
public CMException(java.lang.String err)
CMException
which is not a wrapper, but
rather simply contains a message.
err
- the error message associated with this exceptionThrowable.Throwable(java.lang.String)
public CMException(java.lang.Exception exception)
CMException
exception
- the exception to be wrappedMethod Detail |
public boolean isWrapper()
CMException
wraps another
exception.
public java.lang.Exception unwrap()
Exception
public java.lang.String getMessage()
java.sql.SQLException
, this method also processes
any chained exceptions.
Throwable.getMessage()
,
SQLException
|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©1997, 2003, Oracle. All rights reserved.