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: 
- Serializable
- public class ReportingSQLException 
- extends SQLException
A SQLException that contains information about
 the Statement SQL that caused the exception.
- Author:
- Marc Prud'hommeaux
- See Also:
- Serialized Form
 
 
 
| Methods inherited from class java.lang.Throwable | 
| fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString | 
 
 
ReportingSQLException
public ReportingSQLException(SQLException sqle,
                             Statement stmnt,
                             String sql)
ReportingSQLException
public ReportingSQLException(SQLException sqle,
                             String sql)
ReportingSQLException
public ReportingSQLException(SQLException sqle,
                             Statement stmnt)
getSQLState
public String getSQLState()
- Returns the SQL state of the underlying SQLException.
 
- 
- Overrides:
- getSQLStatein class- SQLException
 
- 
 
getErrorCode
public int getErrorCode()
- Returns the error code of the underlying SQLException.
 
- 
- Overrides:
- getErrorCodein class- SQLException
 
- 
 
getStatement
public Statement getStatement()
- Returns the Statementthat caused the exception.
 
- 
 
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.