ModSQL
Class DatabaseException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.sql.SQLException
|
+--ModSQL.SQLExceptionWithCause
|
+--ModSQL.DatabaseException
- All Implemented Interfaces:
- Serializable
- public class DatabaseException
- extends SQLExceptionWithCause
An exception for use by classes implementing DatabaseManager,
DatabaseTable, and DatabaseIndex to represent database
errors that may occur.
- Author:
- chris.studholme@utoronto.ca
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
DatabaseException
public DatabaseException()
- Default constructor.
DatabaseException
public DatabaseException(String message)
- Exception with a specific reason.
- Parameters:
message - reason exception was thrown
DatabaseException
public DatabaseException(String message,
Throwable cause)
- Exception that was caused by some other exception.
- Parameters:
message - reason exception was throwncause - the cause of this exception
DatabaseException
public DatabaseException(Throwable cause)
- Exception that was caused by some other exception.
- Parameters:
cause - the cause of this exception