org.eclipse.xtend.backend.common
Class EvaluationVetoException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.eclipse.xtend.backend.common.EvaluationVetoException
All Implemented Interfaces:
java.io.Serializable

public final class EvaluationVetoException
extends java.lang.Exception

This exception allows ExecutionListener implementations to veto the evaluation of the actual evaluation of the expression. To do this, they need to throw this exception in their preExecute method.
Vetoing the evaluation of an expression requires them to provide an object that is used as the result of the expression. This object is passed to the exception as the sole constructor parameter.

Author:
Arno Haase (http://www.haase-consulting.com)
See Also:
Serialized Form

Constructor Summary
EvaluationVetoException(java.lang.Object substitutedExpressionResult)
           
 
Method Summary
 java.lang.Object getSubstitutedExpressionResult()
           
 
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
 

Constructor Detail

EvaluationVetoException

public EvaluationVetoException(java.lang.Object substitutedExpressionResult)
Method Detail

getSubstitutedExpressionResult

public java.lang.Object getSubstitutedExpressionResult()