com.gentics.api.lib.expressionparser
Class ExpressionParserException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.gentics.api.lib.exception.NodeException
              extended by com.gentics.api.lib.expressionparser.ExpressionParserException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
EvaluationException, FilterGeneratorException

public abstract class ExpressionParserException
extends NodeException

Abstract base class for all exceptions that are thrown by the expression parser.

See Also:
Serialized Form

Field Summary
protected  String expressionString
          expression string that caused this exception
 
Constructor Summary
ExpressionParserException()
          Create an instance of the exception
ExpressionParserException(String message)
          Create an instance of the exception with a message.
ExpressionParserException(String message, Throwable cause)
          Create an instance of the exception with a message and cause.
ExpressionParserException(Throwable cause)
          Create an instance of the exception with a cause
 
Method Summary
 String getExpressionString()
          Get the expression string of the expression causing this exception
protected abstract  String getGeneralExceptionMessagePrefix()
          Get the general exception message prefix (dependent on the concrete exception class)
 String getMessage()
           
 void setExpressionString(String expressionString)
          Set the expression string of the expression causing this exception
 
Methods inherited from class com.gentics.api.lib.exception.NodeException
getLocalizedMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

expressionString

protected String expressionString
expression string that caused this exception

Constructor Detail

ExpressionParserException

public ExpressionParserException()
Create an instance of the exception


ExpressionParserException

public ExpressionParserException(String message)
Create an instance of the exception with a message. The message will be prepended with the general exception message prefix

Parameters:
message - exception message

ExpressionParserException

public ExpressionParserException(Throwable cause)
Create an instance of the exception with a cause

Parameters:
cause - exception cause

ExpressionParserException

public ExpressionParserException(String message,
                                 Throwable cause)
Create an instance of the exception with a message and cause. The message will be prepended with the general exception message prefix

Parameters:
message - exception message
cause - exception cause
Method Detail

getGeneralExceptionMessagePrefix

protected abstract String getGeneralExceptionMessagePrefix()
Get the general exception message prefix (dependent on the concrete exception class)

Returns:
general exception message prefix

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

getExpressionString

public String getExpressionString()
Get the expression string of the expression causing this exception

Returns:
Returns the expressionString.

setExpressionString

public void setExpressionString(String expressionString)
Set the expression string of the expression causing this exception

Parameters:
expressionString - expressionString


Copyright © 2013 Gentics Software GmbH. All Rights Reserved.