|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.lang.RuntimeException | +--org.quasiliteral.syntax.SyntaxException
Untamed: Thrown if there's a grammatical error in the input.
Field Summary | |
private static String |
ErrIndent
Same number of spaces as in the ErrPrefix |
private static String |
ErrPrefix
|
private int |
myBound
|
private Twine |
myOptLine
|
private Twine |
myOptOpenner
|
private int |
myStart
|
Fields inherited from class java.lang.RuntimeException |
|
Fields inherited from class java.lang.Throwable |
|
Constructor Summary | |
SyntaxException(String msg,
Twine optLine)
Enabled: |
|
SyntaxException(String msg,
Twine optOpenner,
Twine optLine,
int start,
int bound)
Enabled: |
Method Summary | |
void |
__printOn(TextWriter out)
Enabled: Prints as "syntax error: " followed by an optional message, and then an optional indication of the location of the error. |
int |
getBound()
Enabled: |
Twine |
getOptOpenner()
Enabled: |
int |
getStart()
Enabled: |
Twine |
optDamage()
Enabled: |
Twine |
optLine()
Enabled: |
String |
toString()
Suppressed: |
Methods inherited from class java.lang.Throwable |
backtrace, eStack, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, javaStack, leaf, printStackTrace, printStackTrace, printStackTrace, printThrowableOn, setStackTrace, unwrap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private final Twine myOptOpenner
private final Twine myOptLine
private final int myStart
private final int myBound
private static final String ErrPrefix
private static final String ErrIndent
Constructor Detail |
public SyntaxException(String msg, Twine optOpenner, Twine optLine, int start, int bound)
msg
- optOpenner
- optional start of syntax problemoptLine
- line containing errorstart
- index into optLinebound
- index into optLinepublic SyntaxException(String msg, Twine optLine)
Method Detail |
public Twine getOptOpenner()
public Twine optLine()
public int getStart()
public int getBound()
public Twine optDamage()
public void __printOn(TextWriter out) throws IOException
__printOn
in interface EPrintable
IOException
public String toString()
toString
in class Throwable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |