gnu.text
public class SourceError extends Object implements SourceLocator
Field Summary | |
---|---|
String | code If non-null, an error code, as might be specified by a standard. |
int | column The column number of the error, with 1 being the left-most column.
|
Throwable | fakeException Provides optional stack trace.
|
String | filename The name or URL of the file containing the error. |
int | line The (1-origin) location of the error. |
String | message The actual error message.
|
SourceError | next Used to chain to the "next" message. |
char | severity The seriousness of the error - one of 'w' (for warning),
'e' (for error), or 'f' (for fatal error). |
Constructor Summary | |
---|---|
SourceError(char severity, String filename, int line, int column, String message) | |
SourceError(char severity, SourceLocator location, String message) | |
SourceError(LineBufferedReader port, char severity, String message) Create a new SourceError using the current line/column from
a LineBufferedReader . |
Method Summary | |
---|---|
int | getColumnNumber() |
String | getFileName() |
int | getLineNumber() |
String | getPublicId() |
String | getSystemId() |
boolean | isStableSourceLocation() |
void | print(PrintWriter out) |
void | println(PrintWriter out) |
void | println(PrintStream out) |
String | toString() Convert the error to a String.
|
LineBufferedReader
.