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, FBMissingParameterException, FBResultSetNotUpdatableException, FBSQLParseException, ObjectCloseTraceException
public class FBSQLException
- extends java.sql.SQLException
- See Also:
- Serialized Form
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 |
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
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 messageex
- SQLException that should be set as the 'next exception'
FBSQLException
public FBSQLException(java.lang.String message,
java.lang.String sqlState)
- Parameters:
message
- Exception messagesqlState
- SQL State for this exception. Replaced with
SQL_STATE_GENERAL_ERROR
if null
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.