Package net.sf.basedb.core
Class DatabaseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- net.sf.basedb.core.BaseException
-
- net.sf.basedb.core.DatabaseException
-
- All Implemented Interfaces:
Serializable
public class DatabaseException extends BaseException
Exceptions of this type are thrown when there is an error from the database.- Version:
- 2.0
- Author:
- Samuel
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description DatabaseException()
Create a newDatabaseException
object.DatabaseException(String message)
Create a newDatabaseException
object with the specifiedmessage
.DatabaseException(String message, Throwable cause)
Create a newDatabaseException
object with the specifiedmessage
DatabaseException(Throwable cause)
Create a newDatabaseException
object acting as a wrapper for another exception that caused the error.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DatabaseException
public DatabaseException()
Create a newDatabaseException
object.
-
DatabaseException
public DatabaseException(String message)
Create a newDatabaseException
object with the specifiedmessage
.- Parameters:
message
- The message to throw with the exception
-
DatabaseException
public DatabaseException(String message, Throwable cause)
Create a newDatabaseException
object with the specifiedmessage
- Parameters:
message
- The message to throw with the exceptioncause
- The original exception
-
DatabaseException
public DatabaseException(Throwable cause)
Create a newDatabaseException
object acting as a wrapper for another exception that caused the error.- Parameters:
cause
- The original exception
-
-