org.melati.template.webmacro
Class PassbackEvaluationExceptionHandler

Package class diagram package PassbackEvaluationExceptionHandler
java.lang.Object
  extended by org.melati.template.webmacro.PassbackEvaluationExceptionHandler
All Implemented Interfaces:
org.webmacro.engine.EvaluationExceptionHandler

public class PassbackEvaluationExceptionHandler
extends Object
implements org.webmacro.engine.EvaluationExceptionHandler

An implementation of EvaluationExceptionHandler which attempts to use a templet to render the exception.


Constructor Summary
PassbackEvaluationExceptionHandler()
           
 
Method Summary
 String errorString(String errorText)
          
 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)
          
 String warningString(String warningText)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PassbackEvaluationExceptionHandler

public PassbackEvaluationExceptionHandler()
Method Detail

init

public void init(org.webmacro.Broker b,
                 org.webmacro.util.Settings config)

Specified by:
init in interface org.webmacro.engine.EvaluationExceptionHandler
See Also:
init(org.webmacro.Broker, org.webmacro.util.Settings)

evaluate

public void evaluate(org.webmacro.engine.Variable variable,
                     org.webmacro.Context context,
                     Exception problem)
              throws org.webmacro.PropertyException

Specified by:
evaluate in interface org.webmacro.engine.EvaluationExceptionHandler
Throws:
org.webmacro.PropertyException
See Also:
evaluate(org.webmacro.engine.Variable, org.webmacro.Context, java.lang.Exception)

expand

public String expand(org.webmacro.engine.Variable variable,
                     org.webmacro.Context context,
                     Exception problem)
              throws org.webmacro.PropertyException

Specified by:
expand in interface org.webmacro.engine.EvaluationExceptionHandler
Throws:
org.webmacro.PropertyException
See Also:
expand(org.webmacro.engine.Variable, org.webmacro.Context, java.lang.Exception)

warningString

public String warningString(String warningText)
                     throws org.webmacro.PropertyException

Specified by:
warningString in interface org.webmacro.engine.EvaluationExceptionHandler
Throws:
org.webmacro.PropertyException
See Also:
EvaluationExceptionHandler.warningString(java.lang.String)

errorString

public String errorString(String errorText)
                   throws org.webmacro.PropertyException

Specified by:
errorString in interface org.webmacro.engine.EvaluationExceptionHandler
Throws:
org.webmacro.PropertyException
See Also:
EvaluationExceptionHandler.errorString(java.lang.String)


Copyright © 2000-2010 PanEris. All Rights Reserved.