org.melati.poem
Class SQLSeriousPoemException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.melati.poem.PoemException
org.melati.poem.SeriousPoemException
org.melati.poem.SQLSeriousPoemException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- CommitFailedPoemException, ExecutingSQLSeriousPoemException, PreparedSQLSeriousPoemException, RollbackFailedPoemException, SimpleRetrievalFailedPoemException
public class SQLSeriousPoemException
- extends SeriousPoemException
Thrown when there is an SQLException
thrown by the dbms
in a situation where it matters.
- Author:
- WilliamC@paneris.org
- See Also:
- Serialized Form
Field Summary |
String |
sql
The SQL string that was being executed when the error occurred. |
sql
public String sql
- The SQL string that was being executed when the error occurred.
SQLSeriousPoemException
public SQLSeriousPoemException(SQLException sqlException,
String sql)
- An SQL exception and the statement that provoked it.
- Parameters:
sqlException
- the db exception that has been caughtsql
- the SQL statement that provoked the exception
SQLSeriousPoemException
public SQLSeriousPoemException(SQLException sqlException)
- Constructor for use if you do not have the SQL string.
- Parameters:
sqlException
- the db exception that has been caught
getMessage
public String getMessage()
- Description copied from class:
PoemException
- The detail message which may be null.
- Overrides:
getMessage
in class PoemException
- Returns:
- The detail message
- See Also:
Throwable.getMessage()
Copyright © 2000-2010 PanEris. All Rights Reserved.