com.irisel.oms.sql
Class QueryException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.irisel.oms.sql.QueryException
All Implemented Interfaces:
java.io.Serializable

public class QueryException
extends java.lang.Exception

This exception is thrown by several methods in this package when an invalid Query object is found. For example, trying to convert to String a Query object with a null Keyword.

See Also:
Serialized Form

Field Summary
static int FIELD_WRONG
           
static int FILTER_LVAL_NULL
           
static int FILTER_LVAL_WRONG
           
static int FILTER_MULTIPLE_RVAL
           
static int FILTER_RVAL_NOT_NULL
           
static int FILTER_RVAL_NULL
           
static int FILTER_RVAL_WRONG
           
static int KEYWORD_NULL
           
static int KEYWORD_WRONG
           
static int OPTION_FILTER_LVAL_NULL
           
static int OPTION_FILTER_LVAL_WRONG
           
static int OPTION_FILTER_MULTIPLE_RVAL
           
static int OPTION_FILTER_RVAL_NOT_NULL
           
static int OPTION_FILTER_RVAL_NULL
           
static int OPTION_FILTER_RVAL_WRONG
           
static int OPTION_KEYWORD_NULL
           
static int OPTION_KEYWORD_WRONG
           
static int OPTION_NUMBER_WRONG
           
static int OPTION_TARGET_NULL
           
static int OPTION_TARGET_WRONG
           
static int OPTION_WRONG
           
static int PARAMETER_WRONG
           
static int TARGET_NULL
           
static int TARGET_WRONG
           
 
Constructor Summary
QueryException(int code)
          Insert the method's description here.
QueryException(java.lang.String s)
          QueryException constructor comment.
 
Method Summary
 int getCode()
          Insert the method's description here.
 java.lang.String getMessage()
          Returns message according to internal code Creation date: (27/10/02 12:13:29)
 void setCode(int newCode)
          Insert the method's description here.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

KEYWORD_NULL

public static final int KEYWORD_NULL
See Also:
Constant Field Values

KEYWORD_WRONG

public static final int KEYWORD_WRONG
See Also:
Constant Field Values

FIELD_WRONG

public static final int FIELD_WRONG
See Also:
Constant Field Values

PARAMETER_WRONG

public static final int PARAMETER_WRONG
See Also:
Constant Field Values

TARGET_NULL

public static final int TARGET_NULL
See Also:
Constant Field Values

TARGET_WRONG

public static final int TARGET_WRONG
See Also:
Constant Field Values

FILTER_LVAL_NULL

public static final int FILTER_LVAL_NULL
See Also:
Constant Field Values

FILTER_LVAL_WRONG

public static final int FILTER_LVAL_WRONG
See Also:
Constant Field Values

FILTER_MULTIPLE_RVAL

public static final int FILTER_MULTIPLE_RVAL
See Also:
Constant Field Values

FILTER_RVAL_NULL

public static final int FILTER_RVAL_NULL
See Also:
Constant Field Values

FILTER_RVAL_NOT_NULL

public static final int FILTER_RVAL_NOT_NULL
See Also:
Constant Field Values

FILTER_RVAL_WRONG

public static final int FILTER_RVAL_WRONG
See Also:
Constant Field Values

OPTION_WRONG

public static final int OPTION_WRONG
See Also:
Constant Field Values

OPTION_KEYWORD_NULL

public static final int OPTION_KEYWORD_NULL
See Also:
Constant Field Values

OPTION_KEYWORD_WRONG

public static final int OPTION_KEYWORD_WRONG
See Also:
Constant Field Values

OPTION_TARGET_NULL

public static final int OPTION_TARGET_NULL
See Also:
Constant Field Values

OPTION_TARGET_WRONG

public static final int OPTION_TARGET_WRONG
See Also:
Constant Field Values

OPTION_FILTER_LVAL_NULL

public static final int OPTION_FILTER_LVAL_NULL
See Also:
Constant Field Values

OPTION_FILTER_LVAL_WRONG

public static final int OPTION_FILTER_LVAL_WRONG
See Also:
Constant Field Values

OPTION_FILTER_MULTIPLE_RVAL

public static final int OPTION_FILTER_MULTIPLE_RVAL
See Also:
Constant Field Values

OPTION_FILTER_RVAL_NULL

public static final int OPTION_FILTER_RVAL_NULL
See Also:
Constant Field Values

OPTION_FILTER_RVAL_NOT_NULL

public static final int OPTION_FILTER_RVAL_NOT_NULL
See Also:
Constant Field Values

OPTION_FILTER_RVAL_WRONG

public static final int OPTION_FILTER_RVAL_WRONG
See Also:
Constant Field Values

OPTION_NUMBER_WRONG

public static final int OPTION_NUMBER_WRONG
See Also:
Constant Field Values
Constructor Detail

QueryException

public QueryException(int code)
Insert the method's description here. Creation date: (27/10/02 12:13:29)

Parameters:
code - int

QueryException

public QueryException(java.lang.String s)
QueryException constructor comment.

Parameters:
s - java.lang.String
Method Detail

getCode

public int getCode()
Insert the method's description here. Creation date: (27/10/02 12:27:20)

Returns:
int

getMessage

public java.lang.String getMessage()
Returns message according to internal code Creation date: (27/10/02 12:13:29)

Overrides:
getMessage in class java.lang.Throwable
Parameters:
code - int

setCode

public void setCode(int newCode)
Insert the method's description here. Creation date: (27/10/02 12:27:20)

Parameters:
newCode - int