org.webmacro.engine
Class DebugEvaluationExceptionHandler

java.lang.Object
  extended byorg.webmacro.engine.DebugEvaluationExceptionHandler
All Implemented Interfaces:
EvaluationExceptionHandler

public class DebugEvaluationExceptionHandler
extends java.lang.Object
implements EvaluationExceptionHandler


Constructor Summary
DebugEvaluationExceptionHandler()
           
DebugEvaluationExceptionHandler(Broker b)
           
 
Method Summary
 java.lang.String errorString(java.lang.String strText)
           
 void evaluate(Variable variable, Context context, java.lang.Exception problem)
          When an exception is detected in the process of evaluating a variable reference, this method is consulted.
 java.lang.String expand(Variable variable, Context context, java.lang.Exception problem)
          When an exception is detected in the process of expanding (writing) a variable reference, this method is consulted.
 void init(Broker b, Settings config)
          Initialize the EEH
 java.lang.String warningString(java.lang.String strText)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugEvaluationExceptionHandler

public DebugEvaluationExceptionHandler()

DebugEvaluationExceptionHandler

public DebugEvaluationExceptionHandler(Broker b)
Method Detail

init

public void init(Broker b,
                 Settings config)
Description copied from interface: EvaluationExceptionHandler
Initialize the EEH

Specified by:
init in interface EvaluationExceptionHandler

evaluate

public void evaluate(Variable variable,
                     Context context,
                     java.lang.Exception problem)
              throws PropertyException
Description copied from interface: EvaluationExceptionHandler
When an exception is detected in the process of evaluating a variable reference, this method is consulted. It either returns, in which case the caller is supposed to supply a default value (like null), or will throw.

Specified by:
evaluate in interface EvaluationExceptionHandler
Throws:
PropertyException

expand

public java.lang.String expand(Variable variable,
                               Context context,
                               java.lang.Exception problem)
                        throws PropertyException
Description copied from interface: EvaluationExceptionHandler
When an exception is detected in the process of expanding (writing) a variable reference, this method is consulted. It either throws an exception, or it returns a String which can be written to the output in place of the property expansion.

Specified by:
expand in interface EvaluationExceptionHandler
Throws:
PropertyException

warningString

public java.lang.String warningString(java.lang.String strText)
                               throws PropertyException
Specified by:
warningString in interface EvaluationExceptionHandler
Throws:
PropertyException

errorString

public java.lang.String errorString(java.lang.String strText)
                             throws PropertyException
Specified by:
errorString in interface EvaluationExceptionHandler
Throws:
PropertyException