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
Direct Known Subclasses:
FBDriverConsistencyCheckException, FBDriverNotCapableException, FBMissingParameterException, FBResultSetNotUpdatableException, FBSQLParseException, ObjectCloseTraceException

public class FBSQLException
extends java.sql.SQLException

Author:
Ken Richard
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_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_PARAM_TYPE
           
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(java.io.IOException ioex)
           
FBSQLException(javax.resource.ResourceException ex)
           
FBSQLException(java.lang.String message)
           
FBSQLException(java.lang.String message, java.sql.SQLException ex)
           
FBSQLException(java.lang.String message, java.lang.String sqlState)
           
 
Method Summary
 int getErrorCode()
           
 java.lang.Exception getInternalException()
           
 java.lang.String getMessage()
           
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream s)
           
 void printStackTrace(java.io.PrintWriter s)
           
 
Methods inherited from class java.sql.SQLException
getNextException, getSQLState, setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, 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_PARAM_TYPE

public static final java.lang.String SQL_STATE_INVALID_PARAM_TYPE
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_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_CONNECTION_CLOSED

public static final java.lang.String SQL_STATE_CONNECTION_CLOSED
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(java.io.IOException ioex)

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)

FBSQLException

public FBSQLException(java.lang.String message,
                      java.lang.String sqlState)
Method Detail

getErrorCode

public int getErrorCode()
Overrides:
getErrorCode in class java.sql.SQLException

getInternalException

public java.lang.Exception getInternalException()

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream s)
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Overrides:
printStackTrace in class java.lang.Throwable


Copyright © 2001 David Jencks and other authors. All rights reserved.