    All Packages    This Package  Previous  Next

# Class sqlj.runtime.error.Errors

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

public class Errors
extends Object

The Errors class contains error formatting routines used by the jsql.runtime package hierarchy. It contains a series of static methods which return localized strings or raise exceptions with localized messages.

##

DEFAULT_SQLSTATE
  The default SQLState for exceptions raised by the raise_XXX methods.
INVALID_CLASS_DECLARATION_SQLSTATE
  SQLState value of exceptions raised when a generated iterator or connection context class id found to have missing or inaccessible members, or does not otherwise conform to the standard.
INVALID_COLUMN_NAME_SQLSTATE
  SQLState value of exceptions raised when a required named iterator column is not found in the associated runtime query.
INVALID_PROFILE_STATE_SQLSTATE
  SQLState value of exceptions raised when a profile cannot be loaded, or the profile loaded contains invalid data.
UNSUPPORTED_FEATURE_SQLSTATE
  SQLState value of exceptions raised when a SQL operation is executed or a class method is called that a runtime implementation does not support.

##

Errors()

##

getText(ResourceBundle, String)
  Returns the string corresponding to the message with the given key in the given resource bundle.
getText(ResourceBundle, String, Object)
  Returns the string corresponding to the message with the given key in the given resource bundle.
getText(ResourceBundle, String, Object, Object)
  Returns the string corresponding to the message with the given key in the given resource bundle.
getText(ResourceBundle, String, Object, Object, Object)
  Returns the string corresponding to the message with the given key in the given resource bundle.
getText(ResourceBundle, String, Object[])
  Returns the string corresponding to the message with the given key in the given resource bundle.
raiseError(String, ResourceBundle, String)
  Throws a SQLException whose message corresponds to the message with the given key in the given resource bundle.
raiseError(String, ResourceBundle, String, Object)
  Throws a SQLException whose message corresponds to the message with the given key in the given resource bundle.
raiseError(String, ResourceBundle, String, Object, Object)
  Throws a SQLException whose message corresponds to the message with the given key in the given resource bundle.
raiseError(String, ResourceBundle, String, Object, Object, Object)
  Throws a SQLException whose message corresponds to the message with the given key in the given resource bundle.
raiseError(String, ResourceBundle, String, Object[])
  Throws a SQLException whose message corresponds to the message with the given key in the given resource bundle.

##

DEFAULT_SQLSTATE

     public static final String DEFAULT_SQLSTATE

  The default SQLState for exceptions raised by the raise_XXX methods. This is "42000", syntax error or access rule violation.

UNSUPPORTED_FEATURE_SQLSTATE

     public static final String UNSUPPORTED_FEATURE_SQLSTATE

  SQLState value of exceptions raised when a SQL operation is executed or a class method is called that a runtime implementation does not support.

INVALID_CLASS_DECLARATION_SQLSTATE

     public static final String INVALID_CLASS_DECLARATION_SQLSTATE

  SQLState value of exceptions raised when a generated iterator or connection context class id found to have missing or inaccessible members, or does not otherwise conform to the standard.

INVALID_COLUMN_NAME_SQLSTATE

     public static final String INVALID_COLUMN_NAME_SQLSTATE

  SQLState value of exceptions raised when a required named iterator column is not found in the associated runtime query.

INVALID_PROFILE_STATE_SQLSTATE

     public static final String INVALID_PROFILE_STATE_SQLSTATE

  SQLState value of exceptions raised when a profile cannot be loaded, or the profile loaded contains invalid data.

##

Errors

     public Errors()

##

raiseError

     public static void raiseError(String sqlState,
                                   ResourceBundle bundle,
                                   String key) throws SQLException

  Throws a SQLException whose message corresponds to the message with the given key in the given resource bundle. The message must have no replacement arguments.

  Throws: SQLException
    always thrown as a result of this method.

raiseError

     public static void raiseError(String sqlState,
                                   ResourceBundle bundle,
                                   String key,
                                   Object arg1) throws SQLException

  Throws a SQLException whose message corresponds to the message with the given key in the given resource bundle. The message must have exactly one replacement argument, as passed.

  Throws: SQLException
    always thrown as a result of this method.

raiseError

     public static void raiseError(String sqlState,
                                   ResourceBundle bundle,
                                   String key,
                                   Object arg1,
                                   Object arg2) throws SQLException

  Throws a SQLException whose message corresponds to the message with the given key in the given resource bundle. The message must have exactly two replacement arguments, as passed.

  Throws: SQLException
    always thrown as a result of this method.

raiseError

     public static void raiseError(String sqlState,
                                   ResourceBundle bundle,
                                   String key,
                                   Object arg1,
                                   Object arg2,
                                   Object arg3) throws SQLException

  Throws a SQLException whose message corresponds to the message with the given key in the given resource bundle. The message must have exactly three replacement arguments, as passed.

  Throws: SQLException
    always thrown as a result of this method.

raiseError

     public static void raiseError(String sqlState,
                                   ResourceBundle bundle,
                                   String key,
                                   Object args[]) throws SQLException

  Throws a SQLException whose message corresponds to the message with the given key in the given resource bundle. The message must have the same number of replacement arguments as are passed in the object array or arguments.

  Throws: SQLException
    always thrown as a result of this method.

getText

     public static String getText(ResourceBundle bundle,
                                  String key)

  Returns the string corresponding to the message with the given key in the given resource bundle. The message must have no replacement arguments.

getText

     public static String getText(ResourceBundle bundle,
                                  String key,
                                  Object arg)

  Returns the string corresponding to the message with the given key in the given resource bundle. The message must have exactly one replacement argument as are passed in the parameters.

getText

     public static String getText(ResourceBundle bundle,
                                  String key,
                                  Object arg1,
                                  Object arg2)

  Returns the string corresponding to the message with the given key in the given resource bundle. The message must have exactly two replacement arguments as are passed in the parameters.

getText

     public static String getText(ResourceBundle bundle,
                                  String key,
                                  Object arg1,
                                  Object arg2,
                                  Object arg3)

  Returns the string corresponding to the message with the given key in the given resource bundle. The message must have exactly three replacement arguments as are passed in the parameters.

getText

     public static String getText(ResourceBundle bundle,
                                  String key,
                                  Object args[])

  Returns the string corresponding to the message with the given key in the given resource bundle. The message must have the same number of replacement arguments as are passed in the object array or arguments.

    All Packages    This Package  Previous  Next