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, setNextException
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public ReportingSQLException(SQLException sqle, Statement stmnt, String sql)
public String getSQL()
public String getSQLState()
SQLException
.getSQLState
in class SQLException
public int getErrorCode()
SQLException
.getErrorCode
in class SQLException
public int getIndexOfFirstFailedObject()
public void setIndexOfFirstFailedObject(int index)
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.