|
||||||||||
| 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. |
|
PropagateEvaluationExceptionHandler(org.webmacro.Broker b)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
errorString(java.lang.String errorText)
|
void |
evaluate(org.webmacro.engine.Variable variable,
org.webmacro.Context context,
java.lang.Exception problem)
|
java.lang.String |
expand(org.webmacro.engine.Variable variable,
org.webmacro.Context context,
java.lang.Exception problem)
|
void |
init(org.webmacro.Broker b,
org.webmacro.util.Settings config)
|
java.lang.String |
warningString(java.lang.String warningText)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropagateEvaluationExceptionHandler()
public PropagateEvaluationExceptionHandler(org.webmacro.Broker b)
b - the WebMacro broker| 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,
java.lang.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 java.lang.String expand(org.webmacro.engine.Variable variable,
org.webmacro.Context context,
java.lang.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 java.lang.String warningString(java.lang.String warningText)
throws org.webmacro.PropertyException
warningString in interface org.webmacro.engine.EvaluationExceptionHandlerorg.webmacro.PropertyExceptionEvaluationExceptionHandler.warningString(java.lang.String)
public java.lang.String errorString(java.lang.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 | |||||||||