|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException net.sf.basedb.core.BaseException
public class BaseException
This is the base class for exceptions in BASE. All other exceptions defined by BASE are subclasses of this one.
Field Summary | |
---|---|
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
BaseException()
Create a new BaseException object. |
|
BaseException(SQLException cause)
Create a new BaseException object where the
cause is an SQLException. |
|
BaseException(String message)
Create a new BaseException object with the specified
message |
|
BaseException(String message,
Throwable cause)
Create a new BaseException object with the
specified message |
|
BaseException(Throwable cause)
Create a new BaseException object acting as a
wrapper for another exception that caused the error. |
Method Summary |
---|
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 |
Field Detail |
---|
private static final long serialVersionUID
Constructor Detail |
---|
public BaseException()
BaseException
object.
public BaseException(String message)
BaseException
object with the specified
message
message
- The message to throw with the exceptionpublic BaseException(String message, Throwable cause)
BaseException
object with the
specified message
message
- The message to throw with the exceptioncause
- The original exceptionpublic BaseException(Throwable cause)
BaseException
object acting as a
wrapper for another exception that caused the error.
cause
- The original exceptionpublic BaseException(SQLException cause)
BaseException
object where the
cause is an SQLException. An SQLException is different from
other exception in that is uses SQLException.getNextException()
instead of Throwable.getCause()
to chain exception. This
constructor tries to copy the getNextException
:s into
the getCause
chain.
cause
- The SQL exception
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |