public class SourceError extends SourceLocator.Simple
SourceLocator.Simple
Modifier and Type | Field and Description |
---|---|
java.lang.String |
code
If non-null, an error code, as might be specified by a standard.
|
java.lang.Throwable |
fakeException
Provides optional stack trace.
|
java.lang.String |
message
The actual error message.
|
SourceError |
next
Used to chain to the "next" message.
|
char |
severity
The seriousness of the error - one of 'i' (for informational),
'w' (for warning), 'e' (for error), or 'f' (for fatal error).
|
filename, position
Constructor and Description |
---|
SourceError(char severity,
SourceLocator location,
java.lang.String message) |
SourceError(char severity,
java.lang.String filename,
int line,
int column,
java.lang.String message) |
SourceError(gnu.kawa.io.InPort port,
char severity,
java.lang.String message)
Create a new SourceError using the current line/column from
a
InPort . |
Modifier and Type | Method and Description |
---|---|
static void |
appendEscaped(java.lang.Appendable out,
java.lang.CharSequence str) |
void |
appendTo(java.lang.Appendable out,
boolean stripDirectories,
java.lang.String newLine) |
void |
print(java.lang.Appendable out) |
void |
println(java.lang.Appendable out,
boolean stripDirectories) |
java.lang.String |
toString()
Convert the error to a String.
|
java.lang.String |
toString(boolean stripDirectories)
Convert the error to a String.
|
getColumnNumber, getEndColumn, getEndLine, getFileName, getLineNumber, getPublicId, getStartColumn, getStartLine, getSystemId, isRepl, isStableSourceLocation, setFile, setLine, setLine, setLine, setLocation
public SourceError next
public char severity
public java.lang.String code
public java.lang.String message
public java.lang.Throwable fakeException
public SourceError(char severity, java.lang.String filename, int line, int column, java.lang.String message)
public SourceError(char severity, SourceLocator location, java.lang.String message)
public SourceError(gnu.kawa.io.InPort port, char severity, java.lang.String message)
InPort
.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(boolean stripDirectories)
public static void appendEscaped(java.lang.Appendable out, java.lang.CharSequence str) throws java.io.IOException
java.io.IOException
public void appendTo(java.lang.Appendable out, boolean stripDirectories, java.lang.String newLine)
public void print(java.lang.Appendable out)
public void println(java.lang.Appendable out, boolean stripDirectories)