org.webmacro.engine
Interface EvaluationExceptionHandler
- All Known Implementing Classes:
- CrankyEvaluationExceptionHandler, DefaultEvaluationExceptionHandler
- public interface EvaluationExceptionHandler
Method Summary |
java.lang.String |
errorString(java.lang.String errorText)
|
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 warningText)
|
init
public void init(Broker b,
Settings config)
- Initialize the EEH
expand
public java.lang.String expand(Variable variable,
Context context,
java.lang.Exception problem)
throws PropertyException
- 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.
evaluate
public void evaluate(Variable variable,
Context context,
java.lang.Exception problem)
throws PropertyException
- 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.
warningString
public java.lang.String warningString(java.lang.String warningText)
throws PropertyException
errorString
public java.lang.String errorString(java.lang.String errorText)
throws PropertyException