| java.lang.Object gnu.text.SourceError
SourceError | public class SourceError implements SourceLocator(Code) | | Represents an error message from processing a "source" file.
|
Field Summary | |
public String | code If non-null, an error code, as might be specified by a standard. | public int | column The column number of the error, with 1 being the left-most column.
The value 0 means unknown or not applicable (such as the entire line). | public Throwable | fakeException Provides optional stack trace. | public String | filename The name or URL of the file containing the error. | public int | line The (1-origin) location of the error. | public String | message The actual error message. | public SourceError | next Used to chain to the "next" message. | public char | severity The seriousness of the error - one of 'w' (for warning),
'e' (for error), or 'f' (for fatal error). |
code | public String code(Code) | | If non-null, an error code, as might be specified by a standard.
|
column | public int column(Code) | | The column number of the error, with 1 being the left-most column.
The value 0 means unknown or not applicable (such as the entire line).
|
fakeException | public Throwable fakeException(Code) | | Provides optional stack trace.
Filled when --debug-error-prints-stack-trace or
--debug-warning-prints-stack-trace option is used.
|
filename | public String filename(Code) | | The name or URL of the file containing the error.
|
line | public int line(Code) | | The (1-origin) location of the error.
|
message | public String message(Code) | | The actual error message.
This is post-localization and -formatting.
It can contain multiple lines, separated by '\n'.
|
severity | public char severity(Code) | | The seriousness of the error - one of 'w' (for warning),
'e' (for error), or 'f' (for fatal error).
|
SourceError | public SourceError(char severity, String filename, int line, int column, String message)(Code) | | |
SourceError | public SourceError(LineBufferedReader port, char severity, String message)(Code) | | Create a new SourceError using the current line/column from
a LineBufferedReader .
|
getColumnNumber | public int getColumnNumber()(Code) | | |
getLineNumber | public int getLineNumber()(Code) | | |
isStableSourceLocation | public boolean isStableSourceLocation()(Code) | | |
toString | public String toString()(Code) | | Convert the error to a String.
The String starts with filename, line and option column,
followed by the message. Warning messages are indicated as such.
|
|
|