org.apache.openjpa.lib.jdbc
Class ReportingSQLException
java.lang.Object
   java.lang.Throwable
java.lang.Throwable
       java.lang.Exception
java.lang.Exception
           java.sql.SQLException
java.sql.SQLException
               org.apache.openjpa.lib.jdbc.ReportingSQLException
org.apache.openjpa.lib.jdbc.ReportingSQLException
- All Implemented Interfaces: 
- java.io.Serializable
- public class ReportingSQLException 
- extends java.sql.SQLException
A SQLException that contains information about
 the Statement SQL that caused the exception.
- Author:
- Marc Prud'hommeaux
- See Also:
- Serialized Form
 
| Method Summary | 
|  int | getErrorCode()Returns the error code of the underlying
 SQLException. | 
|  java.lang.String | getSQLState()Returns the SQL state of the underlying
 SQLException. | 
|  java.sql.Statement | getStatement()Returns the
 Statementthat caused the exception. | 
 
| Methods inherited from class java.sql.SQLException | 
| getNextException, setNextException | 
 
| Methods inherited from class java.lang.Throwable | 
| fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
ReportingSQLException
public ReportingSQLException(java.sql.SQLException sqle,
                             java.sql.Statement stmnt,
                             java.lang.String sql)
ReportingSQLException
public ReportingSQLException(java.sql.SQLException sqle,
                             java.lang.String sql)
ReportingSQLException
public ReportingSQLException(java.sql.SQLException sqle,
                             java.sql.Statement stmnt)
getSQLState
public java.lang.String getSQLState()
- Returns the SQL state of the underlying SQLException.
 
- 
- Overrides:
- getSQLStatein class- java.sql.SQLException
 
- 
 
getErrorCode
public int getErrorCode()
- Returns the error code of the underlying SQLException.
 
- 
- Overrides:
- getErrorCodein class- java.sql.SQLException
 
- 
 
getStatement
public java.sql.Statement getStatement()
- Returns the Statementthat caused the exception.
 
- 
 
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.