public class FBSQLException
extends java.sql.SQLException
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SQL_STATE_COMM_LINK_FAILURE
Deprecated.
Use constants from
SQLStateConstants . To be removed in Jaybird 4. |
static java.lang.String |
SQL_STATE_CONNECTION_CLOSED
Deprecated.
Use constants from
SQLStateConstants . To be removed in Jaybird 4. |
static java.lang.String |
SQL_STATE_CONNECTION_ERROR
Deprecated.
Use constants from
SQLStateConstants . To be removed in Jaybird 4. |
static java.lang.String |
SQL_STATE_CONNECTION_FAILURE
Deprecated.
Use constants from
SQLStateConstants . To be removed in Jaybird 4. |
static java.lang.String |
SQL_STATE_CONNECTION_FAILURE_IN_TX
Deprecated.
Use constants from
SQLStateConstants . To be removed in Jaybird 4. |
static java.lang.String |
SQL_STATE_GENERAL_ERROR
Deprecated.
Use constants from
SQLStateConstants . To be removed in Jaybird 4. |
static java.lang.String |
SQL_STATE_INVALID_ARG_VALUE
Deprecated.
Use constants from
SQLStateConstants . To be removed in Jaybird 4. |
static java.lang.String |
SQL_STATE_INVALID_COLUMN
Deprecated.
Use constants from
SQLStateConstants . To be removed in Jaybird 4. |
static java.lang.String |
SQL_STATE_INVALID_CONN_ATTR
Deprecated.
Use constants from
SQLStateConstants . To be removed in Jaybird 4. |
static java.lang.String |
SQL_STATE_INVALID_CONVERSION
Deprecated.
Use constants from
SQLStateConstants . To be removed in Jaybird 4. |
static java.lang.String |
SQL_STATE_INVALID_OPTION_IDENTIFIER
Deprecated.
Use constants from
SQLStateConstants . To be removed in Jaybird 4. |
static java.lang.String |
SQL_STATE_INVALID_PARAM_TYPE
Deprecated.
Use constants from
SQLStateConstants . To be removed in Jaybird 4. |
static java.lang.String |
SQL_STATE_INVALID_STATEMENT_ID
Deprecated.
Use constants from
SQLStateConstants . To be removed in Jaybird 4. |
static java.lang.String |
SQL_STATE_INVALID_TX_STATE
Deprecated.
Use constants from
SQLStateConstants . To be removed in Jaybird 4. |
static java.lang.String |
SQL_STATE_NO_RESULT_SET
Deprecated.
Use constants from
SQLStateConstants . To be removed in Jaybird 4. |
static java.lang.String |
SQL_STATE_NO_ROW_AVAIL
Deprecated.
Use constants from
SQLStateConstants . To be removed in Jaybird 4. |
static java.lang.String |
SQL_STATE_SYNTAX_ERROR
Deprecated.
Use constants from
SQLStateConstants . To be removed in Jaybird 4. |
static java.lang.String |
SQL_STATE_WRONG_PARAM_NUM
Deprecated.
Use constants from
SQLStateConstants . To be removed in Jaybird 4. |
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
defaultSQLStateIfNull(java.lang.String sqlState) |
java.lang.Exception |
getInternalException()
Deprecated.
use
Throwable.getCause() instead. |
getErrorCode, getNextException, getSQLState, iterator, setNextException
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
@Deprecated public static final java.lang.String SQL_STATE_INVALID_CONN_ATTR
SQLStateConstants
. To be removed in Jaybird 4.@Deprecated public static final java.lang.String SQL_STATE_NO_ROW_AVAIL
SQLStateConstants
. To be removed in Jaybird 4.@Deprecated public static final java.lang.String SQL_STATE_GENERAL_ERROR
SQLStateConstants
. To be removed in Jaybird 4.@Deprecated public static final java.lang.String SQL_STATE_INVALID_COLUMN
SQLStateConstants
. To be removed in Jaybird 4.@Deprecated public static final java.lang.String SQL_STATE_INVALID_ARG_VALUE
SQLStateConstants
. To be removed in Jaybird 4.@Deprecated public static final java.lang.String SQL_STATE_INVALID_OPTION_IDENTIFIER
SQLStateConstants
. To be removed in Jaybird 4.@Deprecated public static final java.lang.String SQL_STATE_INVALID_PARAM_TYPE
SQLStateConstants
. To be removed in Jaybird 4.@Deprecated public static final java.lang.String SQL_STATE_WRONG_PARAM_NUM
SQLStateConstants
. To be removed in Jaybird 4.@Deprecated public static final java.lang.String SQL_STATE_NO_RESULT_SET
SQLStateConstants
. To be removed in Jaybird 4.@Deprecated public static final java.lang.String SQL_STATE_INVALID_CONVERSION
SQLStateConstants
. To be removed in Jaybird 4.@Deprecated public static final java.lang.String SQL_STATE_INVALID_TX_STATE
SQLStateConstants
. To be removed in Jaybird 4.@Deprecated public static final java.lang.String SQL_STATE_INVALID_STATEMENT_ID
SQLStateConstants
. To be removed in Jaybird 4.@Deprecated public static final java.lang.String SQL_STATE_CONNECTION_ERROR
SQLStateConstants
. To be removed in Jaybird 4.@Deprecated public static final java.lang.String SQL_STATE_CONNECTION_CLOSED
SQLStateConstants
. To be removed in Jaybird 4.@Deprecated public static final java.lang.String SQL_STATE_CONNECTION_FAILURE
SQLStateConstants
. To be removed in Jaybird 4.@Deprecated public static final java.lang.String SQL_STATE_CONNECTION_FAILURE_IN_TX
SQLStateConstants
. To be removed in Jaybird 4.@Deprecated public static final java.lang.String SQL_STATE_COMM_LINK_FAILURE
SQLStateConstants
. To be removed in Jaybird 4.@Deprecated public static final java.lang.String SQL_STATE_SYNTAX_ERROR
SQLStateConstants
. To be removed in Jaybird 4.public FBSQLException(java.lang.Exception ex)
public FBSQLException(GDSException ex)
public FBSQLException(javax.resource.ResourceException ex)
public FBSQLException(java.lang.String message)
@Deprecated public FBSQLException(java.lang.String message, java.sql.SQLException ex)
FBSQLException(String, String)
in combination with
SQLException.setNextException(SQLException)
.message
- Exception messageex
- SQLException that should be set as the 'next exception'public FBSQLException(java.lang.String message, java.lang.String sqlState)
message
- Exception messagesqlState
- SQL State for this exception. Replaced with
SQLStateConstants.SQL_STATE_GENERAL_ERROR
if null@Deprecated public java.lang.Exception getInternalException()
Throwable.getCause()
instead.public static java.lang.String defaultSQLStateIfNull(java.lang.String sqlState)
sqlState
- SQL State value (or null)SQLStateConstants.SQL_STATE_GENERAL_ERROR
if sqlState is
null.Copyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.