|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception org.apache.click.service.TemplateException
public class TemplateException
Provides a template exception class for use by the template service. This is used to wrap TemplateService exceptions and provide error diagnostics such as line and column where error occurred.
Constructor Summary | |
---|---|
TemplateException(Exception cause)
Create a template service exception with the given cause. |
|
TemplateException(Exception cause,
String templateName,
int lineNumber,
int columnNumber)
Create a template service exception with the given cause, template name, line number and column number. |
Method Summary | |
---|---|
Throwable |
fillInStackTrace()
Fills in the execution stack trace. |
int |
getColumnNumber()
Return the template column number where this exception occurred. |
int |
getLineNumber()
Return the template the line number where this exception occurred. |
String |
getTemplateName()
Return the Template name where this exception occurred. |
boolean |
isParseError()
Return true if a template parsing error. |
void |
printStackTrace(PrintStream printStream)
Prints the cause and its backtrace to the specified print stream. |
void |
printStackTrace(PrintWriter printWriter)
Prints the cause and its backtrace to the specified print writer. |
String |
toString()
|
Methods inherited from class java.lang.Throwable |
---|
getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TemplateException(Exception cause)
cause
- the underlying cause of the template service errorpublic TemplateException(Exception cause, String templateName, int lineNumber, int columnNumber)
cause
- the underlying cause of the template service errortemplateName
- the name of the template which cause the errorlineNumber
- the template error line numbercolumnNumber
- the template error column numberMethod Detail |
---|
public int getColumnNumber()
public int getLineNumber()
public String getTemplateName()
public boolean isParseError()
public void printStackTrace(PrintStream printStream)
printStackTrace
in class Throwable
printStream
- the printStream to print the stack trace topublic void printStackTrace(PrintWriter printWriter)
printStackTrace
in class Throwable
printWriter
- the printWriter to writer the stack trace topublic Throwable fillInStackTrace()
Throwable
object information about the current state of
the stack frames for the current thread.
fillInStackTrace
in class Throwable
public String toString()
toString
in class Throwable
Object.toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |