public class SQLRuntimeException
extends java.lang.RuntimeException
implements java.lang.Iterable<java.lang.Throwable>
| Constructor and Description |
|---|
SQLRuntimeException(java.sql.SQLException cause) |
SQLRuntimeException(SQLRuntimeException cause) |
SQLRuntimeException(java.lang.String message,
java.sql.SQLException cause) |
SQLRuntimeException(java.lang.String message,
SQLRuntimeException cause) |
| Modifier and Type | Method and Description |
|---|---|
int |
getErrorCode()
Retrieves the vendor-specific exception code
for this
SQLException object. |
java.sql.SQLException |
getNextException()
Retrieves the exception chained to this
SQLException object by setNextException(SQLException ex). |
java.lang.String |
getSQLState()
Retrieves the SQLState for this
SQLException object. |
boolean |
isTableOrViewNotFound() |
java.util.Iterator<java.lang.Throwable> |
iterator()
Returns an iterator over the chained SQLExceptions.
|
void |
setNextException(java.sql.SQLException ex)
Adds an
SQLException object to the end of the chain. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic SQLRuntimeException(java.sql.SQLException cause)
public SQLRuntimeException(SQLRuntimeException cause)
public SQLRuntimeException(java.lang.String message,
java.sql.SQLException cause)
public SQLRuntimeException(java.lang.String message,
SQLRuntimeException cause)
public java.lang.String getSQLState()
SQLException object.public int getErrorCode()
SQLException object.public java.sql.SQLException getNextException()
SQLException object by setNextException(SQLException ex).SQLException object in the chain;
null if there are nonesetNextException(java.sql.SQLException)public void setNextException(java.sql.SQLException ex)
SQLException object to the end of the chain.ex - the new exception that will be added to the end of
the SQLException chaingetNextException()public java.util.Iterator<java.lang.Throwable> iterator()
iterator in interface java.lang.Iterable<java.lang.Throwable>public boolean isTableOrViewNotFound()