Class SQLRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.gvsig.fmap.dal.store.jdbc.exception.SQLRuntimeException
- All Implemented Interfaces:
Serializable,Iterable<Throwable>
- Author:
- jjdelcerro
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSQLRuntimeException(String message, SQLException cause) SQLRuntimeException(String message, SQLRuntimeException cause) SQLRuntimeException(SQLException cause) -
Method Summary
Modifier and TypeMethodDescriptionintRetrieves the vendor-specific exception code for thisSQLExceptionobject.Retrieves the exception chained to thisSQLExceptionobject by setNextException(SQLException ex).Retrieves the SQLState for thisSQLExceptionobject.booleaniterator()Returns an iterator over the chained SQLExceptions.voidAdds anSQLExceptionobject to the end of the chain.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SQLRuntimeException
-
SQLRuntimeException
-
SQLRuntimeException
-
SQLRuntimeException
-
-
Method Details
-
getSQLState
Retrieves the SQLState for thisSQLExceptionobject.- Returns:
- the SQLState value
-
getErrorCode
public int getErrorCode()Retrieves the vendor-specific exception code for thisSQLExceptionobject.- Returns:
- the vendor's error code
-
getNextException
Retrieves the exception chained to thisSQLExceptionobject by setNextException(SQLException ex).- Returns:
- the next
SQLExceptionobject in the chain;nullif there are none - See Also:
-
setNextException
Adds anSQLExceptionobject to the end of the chain.- Parameters:
ex- the new exception that will be added to the end of theSQLExceptionchain- See Also:
-
iterator
Returns an iterator over the chained SQLExceptions. The iterator will be used to iterate over each SQLException and its underlying cause (if any). -
isTableOrViewNotFound
public boolean isTableOrViewNotFound()
-