All Packages    This Package  Previous  Next  

Class sqlj.runtime.error.RuntimeRefErrors

java.lang.Object
   |
   +----sqlj.runtime.error.Errors
           |
           +----sqlj.runtime.error.RuntimeRefErrors

public class RuntimeRefErrors
extends Errors
The RuntimeRefErrors class defines error constants used by the runtime reference implementation.


Variable Index

 o MULTI_ROW_SELECT_INTO
 o NO_ROW_SELECT_INTO
 o NULL_CONN_CTX
 o NULL_CONNECTION
 o NULL_EXEC_CTX
 o PROFILE_NOT_FOUND
 o WRONG_NUM_COLS

Constructor Index

 o RuntimeRefErrors()

Method Index

 o raise_MULTI_ROW_SELECT_INTO()
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.
 o raise_NO_ROW_SELECT_INTO()
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.
 o raise_NULL_CONN_CTX()
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.
 o raise_NULL_CONNECTION()
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.
 o raise_NULL_EXEC_CTX()
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.
 o raise_PROFILE_NOT_FOUND(String, Exception)
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.
 o raise_WRONG_NUM_COLS(int, int)
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.

Variables

 o PROFILE_NOT_FOUND
 public static final String PROFILE_NOT_FOUND
 o NO_ROW_SELECT_INTO
 public static final String NO_ROW_SELECT_INTO
 o MULTI_ROW_SELECT_INTO
 public static final String MULTI_ROW_SELECT_INTO
 o WRONG_NUM_COLS
 public static final String WRONG_NUM_COLS
 o NULL_CONN_CTX
 public static final String NULL_CONN_CTX
 o NULL_EXEC_CTX
 public static final String NULL_EXEC_CTX
 o NULL_CONNECTION
 public static final String NULL_CONNECTION

Constructors

 o RuntimeRefErrors
 public RuntimeRefErrors()

Methods

 o raise_PROFILE_NOT_FOUND
 public static void raise_PROFILE_NOT_FOUND(String profileName,
                                            Exception profileExcn) throws SQLException
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.

Parameters:
profileName - name of profile that can't be loaded
profileExcn - exception describing problem
Throws: SQLException
this method always throws a SQLException
 o raise_NO_ROW_SELECT_INTO
 public static void raise_NO_ROW_SELECT_INTO() throws SQLException
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.

SQLSTATE: 02000 -- no data

Throws: SQLException
this method always throws a SQLException
 o raise_MULTI_ROW_SELECT_INTO
 public static void raise_MULTI_ROW_SELECT_INTO() throws SQLException
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.

SQLSTATE: 21000 -- cardinality violation

Throws: SQLException
this method always throws a SQLException
 o raise_WRONG_NUM_COLS
 public static void raise_WRONG_NUM_COLS(int expectedCols,
                                         int foundCols) throws SQLException
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.

SQLSTATE: 42122 -- invlaid number of columns

Parameters:
expectedCols - the number of columns expected by the iterator
foundCols - the number of columns found in the result set
Throws: SQLException
this method always throws a SQLException
 o raise_NULL_CONN_CTX
 public static void raise_NULL_CONN_CTX() throws SQLException
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.

SQLSTATE: 08003 -- connection exception, connection does not exist.

Throws: SQLException
this method always throws a SQLException
 o raise_NULL_EXEC_CTX
 public static void raise_NULL_EXEC_CTX() throws SQLException
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.

Throws: SQLException
this method always throws a SQLException
 o raise_NULL_CONNECTION
 public static void raise_NULL_CONNECTION() throws SQLException
Throws a SQLException whose message is the internationalized message for the corresponding error key using the resource bundle found for the default locale.

Throws: SQLException
this method always throws a SQLException

All Packages    This Package  Previous  Next