Package org.intermine.sql
Class DatabaseConnectionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.sql.SQLException
-
- org.intermine.sql.DatabaseConnectionException
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Iterable<java.lang.Throwable>
public class DatabaseConnectionException extends java.sql.SQLException
Exception thrown on failing to object a database connection. This a specific subclass of SQLException in order to distinguish connection errors from other SQL failures.- Author:
- rns
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DatabaseConnectionException()
Constructs an DatabaseConnectionExceptionDatabaseConnectionException(java.lang.String msg)
Constructs an ObjectStoreException with the specified detail message.DatabaseConnectionException(java.lang.String msg, java.lang.Throwable t)
Constructs an ObjectStoreException with the specified detail message and nested throwable.DatabaseConnectionException(java.lang.Throwable t)
Constructs an ObjectStoreException with the specified nested throwable.
-
Method Summary
-
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, iterator, setNextException
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
DatabaseConnectionException
public DatabaseConnectionException()
Constructs an DatabaseConnectionException
-
DatabaseConnectionException
public DatabaseConnectionException(java.lang.String msg)
Constructs an ObjectStoreException with the specified detail message.- Parameters:
msg
- the detail message
-
DatabaseConnectionException
public DatabaseConnectionException(java.lang.Throwable t)
Constructs an ObjectStoreException with the specified nested throwable.- Parameters:
t
- the nested throwable
-
DatabaseConnectionException
public DatabaseConnectionException(java.lang.String msg, java.lang.Throwable t)
Constructs an ObjectStoreException with the specified detail message and nested throwable.- Parameters:
msg
- the detail messaget
- the nested throwable
-
-