|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.melati.template.webmacro.PropagateEvaluationExceptionHandler
public class PropagateEvaluationExceptionHandler
An implementation of EvaluationExceptionHandler which throws an exception whenever it is called. This will generally cause the exception to be displayed to the user -- useful for debugging. Modified to allow #if ($null).
| Constructor Summary | |
|---|---|
PropagateEvaluationExceptionHandler()
Constructor. |
|
| Method Summary | |
|---|---|
String |
errorString(String errorText)
I do not believe that this can be exercised, without a bug in webmacro. |
void |
evaluate(org.webmacro.engine.Variable variable,
org.webmacro.Context context,
Exception problem)
|
String |
expand(org.webmacro.engine.Variable variable,
org.webmacro.Context context,
Exception problem)
|
void |
init(org.webmacro.Broker b,
org.webmacro.util.Settings config)
Forced upon us by the interface, but unused. |
String |
warningString(String warningText)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropagateEvaluationExceptionHandler()
| Method Detail |
|---|
public void init(org.webmacro.Broker b,
org.webmacro.util.Settings config)
init in interface org.webmacro.engine.EvaluationExceptionHandlerinit(org.webmacro.Broker, org.webmacro.util.Settings)
public void evaluate(org.webmacro.engine.Variable variable,
org.webmacro.Context context,
Exception problem)
throws org.webmacro.PropertyException
evaluate in interface org.webmacro.engine.EvaluationExceptionHandlerorg.webmacro.PropertyExceptionevaluate(org.webmacro.engine.Variable,
org.webmacro.Context, java.lang.Exception)
public String expand(org.webmacro.engine.Variable variable,
org.webmacro.Context context,
Exception problem)
throws org.webmacro.PropertyException
expand in interface org.webmacro.engine.EvaluationExceptionHandlerorg.webmacro.PropertyExceptionEvaluationExceptionHandler.expand(
org.webmacro.engine.Variable, org.webmacro.Context, java.lang.Exception)
public String warningString(String warningText)
throws org.webmacro.PropertyException
warningString in interface org.webmacro.engine.EvaluationExceptionHandlerorg.webmacro.PropertyExceptionEvaluationExceptionHandler.warningString(java.lang.String)
public String errorString(String errorText)
throws org.webmacro.PropertyException
errorString in interface org.webmacro.engine.EvaluationExceptionHandlerorg.webmacro.PropertyExceptionEvaluationExceptionHandler.errorString(java.lang.String)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||