|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.velocity.exception.VelocityException
org.apache.velocity.exception.ParseErrorException
Application-level exception thrown when a resource of any type
has a syntax or other error which prevents it from being parsed.
When this resource is thrown, a best effort will be made to have
useful information in the exception's message. For complete
information, consult the runtime log.
| Constructor Summary | |
ParseErrorException(ParseException pex,
String templName)
Create a ParseErrorException with the given ParseException. |
|
ParseErrorException(String exceptionMessage)
Create a ParseErrorException with the given message. |
|
ParseErrorException(String exceptionMessage,
Info info)
Create a ParseErrorRuntimeException with the given message and info |
|
ParseErrorException(String exceptionMessage,
Info info,
String invalidSyntax)
Create a ParseErrorRuntimeException with the given message and info |
|
ParseErrorException(VelocityException pex,
String templName)
Create a ParseErrorException with the given ParseException. |
|
| Method Summary | |
int |
getColumnNumber()
Return the column number of the parsing error, or -1 if not defined. |
String |
getInvalidSyntax()
Return the invalid syntax or reference that triggered this error, or null if not defined. |
int |
getLineNumber()
Return the line number of the parsing error, or -1 if not defined. |
String |
getMessage()
Return our custum message if we have one, else return the default message |
String |
getTemplateName()
Return the name of the template containing the error, or null if not defined. |
| Methods inherited from class org.apache.velocity.exception.VelocityException |
getWrappedThrowable |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ParseErrorException(String exceptionMessage)
exceptionMessage - the error exception message
public ParseErrorException(ParseException pex,
String templName)
pex - the parsing exception
public ParseErrorException(VelocityException pex,
String templName)
pex - the parsing exception
public ParseErrorException(String exceptionMessage,
Info info)
exceptionMessage - the error exception messageinfo - an Info object with the current template info
public ParseErrorException(String exceptionMessage,
Info info,
String invalidSyntax)
exceptionMessage - the error exception messageinfo - an Info object with the current template infoinvalidSyntax - the invalid syntax or reference triggering this exception| Method Detail |
public int getColumnNumber()
public int getLineNumber()
public String getTemplateName()
public String getInvalidSyntax()
public String getMessage()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||