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:
- java.io.Serializable,- java.lang.Iterable<java.lang.Throwable>
 - Direct Known Subclasses:
- FBDriverConsistencyCheckException,- FBResultSetNotUpdatableException
 
 public class FBSQLException extends java.sql.SQLException- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description FBSQLException(java.lang.Exception ex)FBSQLException(java.lang.String message)FBSQLException(java.lang.String message, java.lang.String sqlState)FBSQLException(java.lang.String message, java.sql.SQLException ex)Deprecated.In all most all cases useFBSQLException(String, String)in combination withSQLException.setNextException(SQLException).
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.lang.StringdefaultSQLStateIfNull(java.lang.String sqlState)java.lang.ExceptiongetInternalException()Deprecated.useThrowable.getCause()instead.- 
Methods inherited from class java.sql.SQLExceptiongetErrorCode, getNextException, getSQLState, iterator, setNextException
 - 
Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
FBSQLExceptionpublic FBSQLException(java.lang.Exception ex) 
 - 
FBSQLExceptionpublic FBSQLException(java.lang.String message) 
 - 
FBSQLException@Deprecated public FBSQLException(java.lang.String message, java.sql.SQLException ex)Deprecated.In all most all cases useFBSQLException(String, String)in combination withSQLException.setNextException(SQLException).- Parameters:
- message- Exception message
- ex- SQLException that should be set as the 'next exception'
 
 - 
FBSQLExceptionpublic FBSQLException(java.lang.String message, java.lang.String sqlState)- Parameters:
- message- Exception message
- sqlState- SQL State for this exception. Replaced with- SQLStateConstants.SQL_STATE_GENERAL_ERRORif null
 
 
- 
 - 
Method Detail- 
getInternalException@Deprecated public java.lang.Exception getInternalException() Deprecated.useThrowable.getCause()instead.
 - 
defaultSQLStateIfNullpublic static java.lang.String defaultSQLStateIfNull(java.lang.String sqlState) - Parameters:
- sqlState- SQL State value (or null)
- Returns:
- The passed sqlState or
         SQLStateConstants.SQL_STATE_GENERAL_ERRORif sqlState is null.
 
 
- 
 
-