public class FBSQLException
extends java.sql.SQLException
Modifier and Type | Field and Description |
---|---|
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 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
public static final java.lang.String SQL_STATE_INVALID_CONN_ATTR
public static final java.lang.String SQL_STATE_NO_ROW_AVAIL
public static final java.lang.String SQL_STATE_GENERAL_ERROR
public static final java.lang.String SQL_STATE_INVALID_COLUMN
public static final java.lang.String SQL_STATE_INVALID_ARG_VALUE
public static final java.lang.String SQL_STATE_INVALID_OPTION_IDENTIFIER
public static final java.lang.String SQL_STATE_INVALID_PARAM_TYPE
public static final java.lang.String SQL_STATE_WRONG_PARAM_NUM
public static final java.lang.String SQL_STATE_NO_RESULT_SET
public static final java.lang.String SQL_STATE_INVALID_CONVERSION
public static final java.lang.String SQL_STATE_INVALID_TX_STATE
public static final java.lang.String SQL_STATE_INVALID_STATEMENT_ID
public static final java.lang.String SQL_STATE_CONNECTION_CLOSED
public static final java.lang.String SQL_STATE_CONNECTION_FAILURE
public static final java.lang.String SQL_STATE_CONNECTION_FAILURE_IN_TX
public static final java.lang.String SQL_STATE_COMM_LINK_FAILURE
public FBSQLException(java.lang.Exception ex)
public FBSQLException(GDSException ex)
public FBSQLException(javax.resource.ResourceException ex)
public FBSQLException(java.lang.String message)
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
SQL_STATE_GENERAL_ERROR
if nullpublic java.lang.Exception getInternalException()
Throwable.getCause()
instead.public static java.lang.String defaultSQLStateIfNull(java.lang.String sqlState)
sqlState
- SQL State value (or null)SQL_STATE_GENERAL_ERROR
if sqlState is
null.Copyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.