public class JSilverBadSyntaxException extends JSilverException
Modifier and Type | Field and Description |
---|---|
static int |
UNKNOWN_POSITION
Signifies line or column is not known.
|
Constructor and Description |
---|
JSilverBadSyntaxException(String message,
String lineContent,
String resourceName,
int line,
int column,
Throwable cause)
Constructor of JSilverBadSyntaxException.
|
Modifier and Type | Method and Description |
---|---|
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).
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final int UNKNOWN_POSITION
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.public String getResourceName()
public int getLine()
UNKNOWN_POSITION
.public int getColumn()
UNKNOWN_POSITION
.Copyright © 2010–2013 Google. All rights reserved.