public class ReportingSQLException
extends java.sql.SQLException
SQLException that contains information about
the Statement SQL that caused the exception.| Constructor and Description |
|---|
ReportingSQLException(java.sql.SQLException sqle,
java.sql.Statement stmnt,
java.lang.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() |
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) |
public ReportingSQLException(java.sql.SQLException sqle,
java.sql.Statement stmnt,
java.lang.String sql)
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)
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.