freemarker.core
public class: StopException [javadoc |
source]
java.lang.Object
java.lang.Throwable
java.lang.Exception
freemarker.template.TemplateException
freemarker.core.StopException
All Implemented Interfaces:
Serializable
This exception is thrown when a <stop>
directive is encountered.
Methods from java.lang.Throwable: |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Method from freemarker.core.StopException Detail: |
public void printStackTrace(PrintWriter pw) {
String msg = this.getMessage();
pw.print("Encountered stop instruction");
if (msg != null && !msg.equals("")) {
pw.println("\nCause given: " + msg);
} else pw.println();
super.printStackTrace(pw);
}
|
public void printStackTrace(PrintStream ps) {
String msg = this.getMessage();
ps.print("Encountered stop instruction");
if (msg != null && !msg.equals("")) {
ps.println("\nCause given: " + msg);
} else ps.println();
super.printStackTrace(ps);
}
|