Package net.sf.basedb.core
Class BaseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.sf.basedb.core.BaseException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ConfigurationException
,ConnectionClosedException
,DatabaseException
,DetachedItemException
,DeviceNotVerifiedException
,InvalidDataException
,InvalidPasswordException
,InvalidRelationException
,LoginException
,PermissionDeniedException
,SignalException
public class BaseException extends RuntimeException
This is the base class for exceptions in BASE. All other
exceptions defined by BASE are subclasses of this one.
- Version:
- 2.0
- Author:
- Nicklas
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description BaseException()
Create a newBaseException
object.BaseException(String message)
Create a newBaseException
object with the specifiedmessage
BaseException(String message, Throwable cause)
Create a newBaseException
object with the specifiedmessage
BaseException(Throwable cause)
Create a newBaseException
object acting as a wrapper for another exception that caused the error.BaseException(SQLException cause)
Create a newBaseException
object where the cause is an SQLException. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
- Constant Field Values
-
-
Constructor Details
-
BaseException
public BaseException()Create a newBaseException
object. -
BaseException
Create a newBaseException
object with the specifiedmessage
- Parameters:
message
- The message to throw with the exception
-
BaseException
Create a newBaseException
object with the specifiedmessage
- Parameters:
message
- The message to throw with the exceptioncause
- The original exception
-
BaseException
Create a newBaseException
object acting as a wrapper for another exception that caused the error.- Parameters:
cause
- The original exception
-
BaseException
Create a newBaseException
object where the cause is an SQLException. An SQLException is different from other exception in that is usesSQLException.getNextException()
instead ofThrowable.getCause()
to chain exception. This constructor tries to copy thegetNextException
:s into thegetCause
chain.- Parameters:
cause
- The SQL exception
-