public class ReportingSQLException extends SQLException
SQLException that contains information about
the Statement SQL that caused the exception.| Constructor and Description |
|---|
ReportingSQLException(SQLException sqle,
Statement stmnt,
String sql)
Supply original exception and non-null Statement and/or SQL string.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getErrorCode()
Returns the error code of the underlying
SQLException. |
int |
getIndexOfFirstFailedObject() |
String |
getSQL()
Gets the SQL string if available.
|
String |
getSQLState()
Returns the SQL state of the underlying
SQLException. |
Statement |
getStatement()
Returns the
Statement that caused the exception. |
void |
setIndexOfFirstFailedObject(int index) |
getNextException, iterator, setNextExceptionaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic ReportingSQLException(SQLException sqle, Statement stmnt, String sql)
public String getSQL()
public String getSQLState()
SQLException.getSQLState in class SQLExceptionpublic int getErrorCode()
SQLException.getErrorCode in class SQLExceptionpublic int getIndexOfFirstFailedObject()
public void setIndexOfFirstFailedObject(int index)
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.