org.melati.poem
Class SQLSeriousPoemException

Package class diagram package SQLSeriousPoemException
java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.melati.poem.PoemException
                  extended by org.melati.poem.SeriousPoemException
                      extended by 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.
 
Fields inherited from class org.melati.poem.PoemException
subException
 
Constructor Summary
SQLSeriousPoemException(SQLException sqlException)
          Constructor for use if you do not have the SQL string.
SQLSeriousPoemException(SQLException sqlException, String sql)
          An SQL exception and the statement that provoked it.
 
Method Summary
 String getMessage()
          The detail message which may be null.
 
Methods inherited from class org.melati.poem.PoemException
getCoreMessage, initCause, innermostException, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sql

public String sql
The SQL string that was being executed when the error occurred.

Constructor Detail

SQLSeriousPoemException

public SQLSeriousPoemException(SQLException sqlException,
                               String sql)
An SQL exception and the statement that provoked it.

Parameters:
sqlException - the db exception that has been caught
sql - 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
Method Detail

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.