public class BaseException extends RuntimeException
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
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. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
private static final long serialVersionUID
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