|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.sql.SQLException
org.apache.openjpa.lib.jdbc.ReportingSQLException
public class ReportingSQLException
A SQLException that contains information about
the Statement SQL that caused the exception.
| Constructor Summary | |
|---|---|
ReportingSQLException(java.sql.SQLException sqle,
java.sql.Statement stmnt,
java.lang.String sql)
Supply original exception and non-null Statement and/or SQL string. |
|
| Method Summary | |
|---|---|
int |
getErrorCode()
Returns the error code of the underlying SQLException. |
int |
getIndexOfFirstFailedObject()
|
java.lang.String |
getSQL()
Gets the SQL string if available. |
java.lang.String |
getSQLState()
Returns the SQL state of the underlying SQLException. |
java.sql.Statement |
getStatement()
Returns the Statement that caused the exception. |
void |
setIndexOfFirstFailedObject(int index)
|
| Methods inherited from class java.sql.SQLException |
|---|
getNextException, iterator, 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 |
| Constructor Detail |
|---|
public ReportingSQLException(java.sql.SQLException sqle,
java.sql.Statement stmnt,
java.lang.String sql)
| Method Detail |
|---|
public java.lang.String getSQL()
public java.lang.String getSQLState()
SQLException.
getSQLState in class java.sql.SQLExceptionpublic int getErrorCode()
SQLException.
getErrorCode in class java.sql.SQLExceptionpublic java.sql.Statement getStatement()
Statement that caused the exception.
public int getIndexOfFirstFailedObject()
public void setIndexOfFirstFailedObject(int index)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||