org.ourgrid.common.exception
Class TokenErrorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.ourgrid.common.exception.OurgridException
              extended by org.ourgrid.common.exception.TokenErrorException
All Implemented Interfaces:
java.io.Serializable

public class TokenErrorException
extends OurgridException

Used to signalize that a part of the expression is syntactically malformed. This expression is used at MyGrid to define the Job expressions to the match moment. If the expressions passed by the compiler, it was already checked but the user can use the Job definitions direct at the API.

See Also:
Serialized Form

Constructor Summary
TokenErrorException(java.lang.String expression, java.lang.String detail)
           
 
Method Summary
 java.lang.String getMessage()
          Returns the exception message.
 
Methods inherited from class org.ourgrid.common.exception.OurgridException
getStackTrace, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TokenErrorException

public TokenErrorException(java.lang.String expression,
                           java.lang.String detail)
Parameters:
expression - the malformed expression
detail - a message detail about the error
Method Detail

getMessage

public java.lang.String getMessage()
Returns the exception message.

Overrides:
getMessage in class OurgridException
Returns:
The message