net.scheinerman.phoenix.interpreter.exceptions
Class UnsupportedOperatorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.scheinerman.phoenix.interpreter.exceptions.PhoenixRuntimeException
                  extended by net.scheinerman.phoenix.interpreter.exceptions.UnsupportedOperatorException
All Implemented Interfaces:
java.io.Serializable

public class UnsupportedOperatorException
extends PhoenixRuntimeException

See Also:
Serialized Form

Field Summary
private  java.lang.String operator
           
private static long serialVersionUID
           
private  Variable var
           
 
Constructor Summary
UnsupportedOperatorException(Variable var, java.lang.String operator)
           
 
Method Summary
 java.lang.String getBriefMessage()
          This returns a brief (one line) description of the error that occurred.
 java.lang.String getErrorType()
          This method returns the type of error for this particular exception.
 
Methods inherited from class net.scheinerman.phoenix.interpreter.exceptions.PhoenixRuntimeException
getLastLine, isLastLineSet, printErrorMessage, setLastLine, setLastLineSet
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

var

private Variable var

operator

private java.lang.String operator
Constructor Detail

UnsupportedOperatorException

public UnsupportedOperatorException(Variable var,
                                    java.lang.String operator)
Method Detail

getErrorType

public java.lang.String getErrorType()
Description copied from class: PhoenixRuntimeException
This method returns the type of error for this particular exception. In this case the method returns the string literal "Syntax error".
Note: When subclassing this class, this method should be overridden to provide appropriate functionality.

Overrides:
getErrorType in class PhoenixRuntimeException
Returns:
"Syntax Error"

getBriefMessage

public java.lang.String getBriefMessage()
Description copied from class: PhoenixRuntimeException
This returns a brief (one line) description of the error that occurred. In this case the method returns the string literal "Generic error".
Note: When subclassing this class, this method should be overridden to provide appropriate functionality.

Overrides:
getBriefMessage in class PhoenixRuntimeException
Returns:
"Generic error"