uk.ac.ebi.intenz.webapp.exceptions
Class DatabaseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
uk.ac.ebi.intenz.webapp.exceptions.DatabaseException
- All Implemented Interfaces:
- Serializable
public class DatabaseException
- extends Exception
This exception is a wrapper around the SQLException.
The purpose of this class is to provide either a user friendly version of a SQL exception
or for the programmer the tough details.
- Version:
- 2.0.0 - 27-February-2004
- Author:
- Michael Darsow
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
DatabaseException
public DatabaseException(String message,
SQLException sqlException)
- Initialise this exception with a user friendly message and the
SQLException
object.
- Parameters:
message
- The self-defined message.sqlException
- SQLException
instance.
DatabaseException
public DatabaseException(String message)
DatabaseException
public DatabaseException(SQLException sqlException)
- Uses a standard message.
- Parameters:
sqlException
- SQLException
instance.
getSqlExceptionMessage
public String getSqlExceptionMessage()
- Return the details about this exception.
- Returns:
SQLException
message.
Copyright © 2013 EMBL-EBI. All Rights Reserved.