Package org.firebirdsql.jdbc
Class FBSQLException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.sql.SQLException
org.firebirdsql.jdbc.FBSQLException
- All Implemented Interfaces:
Serializable,Iterable<Throwable>
- Direct Known Subclasses:
FBDriverConsistencyCheckException,FBMissingParameterException,FBResultSetNotUpdatableException,TypeConversionException
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFBSQLException(String message) FBSQLException(String message, String sqlState) FBSQLException(String message, SQLException ex) Deprecated.FBSQLException(javax.resource.ResourceException ex) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdefaultSQLStateIfNull(String sqlState) Deprecated.useThrowable.getCause()instead.Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, iterator, setNextExceptionMethods 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
-
FBSQLException
-
FBSQLException
-
FBSQLException
public FBSQLException(javax.resource.ResourceException ex) -
FBSQLException
-
FBSQLException
Deprecated.In all most all cases useFBSQLException(String, String)in combination withSQLException.setNextException(SQLException).- Parameters:
message- Exception messageex- SQLException that should be set as the 'next exception'
-
FBSQLException
- Parameters:
message- Exception messagesqlState- SQL State for this exception. Replaced withSQLStateConstants.SQL_STATE_GENERAL_ERRORif null
-
-
Method Details
-
getInternalException
Deprecated.useThrowable.getCause()instead. -
defaultSQLStateIfNull
- Parameters:
sqlState- SQL State value (or null)- Returns:
- The passed sqlState or
SQLStateConstants.SQL_STATE_GENERAL_ERRORif sqlState is null.
-
FBSQLException(String, String)in combination withSQLException.setNextException(SQLException).