|
||||||||||
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
com.google.clearsilver.jsilver.exceptions.JSilverException
com.google.clearsilver.jsilver.exceptions.JSilverBadSyntaxException
public class JSilverBadSyntaxException
Thrown when resource (e.g. template or HDF) contains bad syntax.
Field Summary | |
---|---|
static int |
UNKNOWN_POSITION
Signifies line or column is not known. |
Constructor Summary | |
---|---|
JSilverBadSyntaxException(String message,
String lineContent,
String resourceName,
int line,
int column,
Throwable cause)
Constructor of JSilverBadSyntaxException. |
Method Summary | |
---|---|
int |
getColumn()
Column number this syntax error occured, or UNKNOWN_POSITION . |
int |
getLine()
Line number this syntax error occured, or UNKNOWN_POSITION . |
String |
getResourceName()
Name of resource that had syntax error (typically a file name). |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int UNKNOWN_POSITION
Constructor Detail |
---|
public JSilverBadSyntaxException(String message, String lineContent, String resourceName, int line, int column, Throwable cause)
message
- text of an error messagelineContent
- content of a line where error occurred (can be null)resourceName
- name of a file where error occurred (can be null)line
- number of a line in resourceName
where error occurred (ignored if set to
UNKNOWN_POSITION
)column
- number of a column in resourceName
where error occurred (ignored if set
to UNKNOWN_POSITION
)cause
- an original exception of an error. Null value is permitted and indicates that the
cause is nonexistent or unknown.Method Detail |
---|
public String getResourceName()
public int getLine()
UNKNOWN_POSITION
.
public int getColumn()
UNKNOWN_POSITION
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |