org.firebirdsql.jdbc
Class FBSQLException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.sql.SQLException
              extended by org.firebirdsql.jdbc.FBSQLException
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<java.lang.Throwable>
Direct Known Subclasses:
FBDriverConsistencyCheckException, FBMissingParameterException, FBResultSetNotUpdatableException, FBSQLParseException, ObjectCloseTraceException

public class FBSQLException
extends java.sql.SQLException

See Also:
Serialized Form

Field Summary
static java.lang.String SQL_STATE_COMM_LINK_FAILURE
           
static java.lang.String SQL_STATE_CONNECTION_CLOSED
           
static java.lang.String SQL_STATE_CONNECTION_FAILURE
           
static java.lang.String SQL_STATE_CONNECTION_FAILURE_IN_TX
           
static java.lang.String SQL_STATE_GENERAL_ERROR
           
static java.lang.String SQL_STATE_INVALID_ARG_VALUE
           
static java.lang.String SQL_STATE_INVALID_COLUMN
           
static java.lang.String SQL_STATE_INVALID_CONN_ATTR
           
static java.lang.String SQL_STATE_INVALID_CONVERSION
           
static java.lang.String SQL_STATE_INVALID_OPTION_IDENTIFIER
           
static java.lang.String SQL_STATE_INVALID_PARAM_TYPE
           
static java.lang.String SQL_STATE_INVALID_STATEMENT_ID
           
static java.lang.String SQL_STATE_INVALID_TX_STATE
           
static java.lang.String SQL_STATE_NO_RESULT_SET
           
static java.lang.String SQL_STATE_NO_ROW_AVAIL
           
static java.lang.String SQL_STATE_WRONG_PARAM_NUM
           
 
Constructor Summary
FBSQLException(java.lang.Exception ex)
           
FBSQLException(GDSException ex)
           
FBSQLException(javax.resource.ResourceException ex)
           
FBSQLException(java.lang.String message)
           
FBSQLException(java.lang.String message, java.sql.SQLException ex)
          Deprecated. In all most all cases use FBSQLException(String, String) in combination with SQLException.setNextException(SQLException).
FBSQLException(java.lang.String message, java.lang.String sqlState)
           
 
Method Summary
static java.lang.String defaultSQLStateIfNull(java.lang.String sqlState)
           
 java.lang.Exception getInternalException()
          Deprecated. use Throwable.getCause() instead.
 
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, iterator, setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SQL_STATE_INVALID_CONN_ATTR

public static final java.lang.String SQL_STATE_INVALID_CONN_ATTR
See Also:
Constant Field Values

SQL_STATE_NO_ROW_AVAIL

public static final java.lang.String SQL_STATE_NO_ROW_AVAIL
See Also:
Constant Field Values

SQL_STATE_GENERAL_ERROR

public static final java.lang.String SQL_STATE_GENERAL_ERROR
See Also:
Constant Field Values

SQL_STATE_INVALID_COLUMN

public static final java.lang.String SQL_STATE_INVALID_COLUMN
See Also:
Constant Field Values

SQL_STATE_INVALID_ARG_VALUE

public static final java.lang.String SQL_STATE_INVALID_ARG_VALUE
See Also:
Constant Field Values

SQL_STATE_INVALID_OPTION_IDENTIFIER

public static final java.lang.String SQL_STATE_INVALID_OPTION_IDENTIFIER
See Also:
Constant Field Values

SQL_STATE_INVALID_PARAM_TYPE

public static final java.lang.String SQL_STATE_INVALID_PARAM_TYPE
See Also:
Constant Field Values

SQL_STATE_WRONG_PARAM_NUM

public static final java.lang.String SQL_STATE_WRONG_PARAM_NUM
See Also:
Constant Field Values

SQL_STATE_NO_RESULT_SET

public static final java.lang.String SQL_STATE_NO_RESULT_SET
See Also:
Constant Field Values

SQL_STATE_INVALID_CONVERSION

public static final java.lang.String SQL_STATE_INVALID_CONVERSION
See Also:
Constant Field Values

SQL_STATE_INVALID_TX_STATE

public static final java.lang.String SQL_STATE_INVALID_TX_STATE
See Also:
Constant Field Values

SQL_STATE_INVALID_STATEMENT_ID

public static final java.lang.String SQL_STATE_INVALID_STATEMENT_ID
See Also:
Constant Field Values

SQL_STATE_CONNECTION_CLOSED

public static final java.lang.String SQL_STATE_CONNECTION_CLOSED
See Also:
Constant Field Values

SQL_STATE_CONNECTION_FAILURE

public static final java.lang.String SQL_STATE_CONNECTION_FAILURE
See Also:
Constant Field Values

SQL_STATE_CONNECTION_FAILURE_IN_TX

public static final java.lang.String SQL_STATE_CONNECTION_FAILURE_IN_TX
See Also:
Constant Field Values

SQL_STATE_COMM_LINK_FAILURE

public static final java.lang.String SQL_STATE_COMM_LINK_FAILURE
See Also:
Constant Field Values
Constructor Detail

FBSQLException

public FBSQLException(java.lang.Exception ex)

FBSQLException

public FBSQLException(GDSException ex)

FBSQLException

public FBSQLException(javax.resource.ResourceException ex)

FBSQLException

public FBSQLException(java.lang.String message)

FBSQLException

public FBSQLException(java.lang.String message,
                      java.sql.SQLException ex)
Deprecated. In all most all cases use FBSQLException(String, String) in combination with SQLException.setNextException(SQLException).

Parameters:
message - Exception message
ex - SQLException that should be set as the 'next exception'

FBSQLException

public FBSQLException(java.lang.String message,
                      java.lang.String sqlState)
Parameters:
message - Exception message
sqlState - SQL State for this exception. Replaced with SQL_STATE_GENERAL_ERROR if null
Method Detail

getInternalException

public java.lang.Exception getInternalException()
Deprecated. use Throwable.getCause() instead.


defaultSQLStateIfNull

public static java.lang.String defaultSQLStateIfNull(java.lang.String sqlState)
Parameters:
sqlState - SQL State value (or null)
Returns:
The passed sqlState or SQL_STATE_GENERAL_ERROR if sqlState is null.


Copyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.