|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
net.aethersanctum.curlyml.SyntaxException
public class SyntaxException
Gets thrown by the Parser or the Scanner if either of them encounter something they can't deal with.
Nested Class Summary | |
---|---|
static class |
SyntaxException.Reason
a code explaining what went wrong. |
Constructor Summary | |
---|---|
SyntaxException(SyntaxException.Reason r,
int line,
int column)
SyntaxExceptions must be created with a reason why parsing failed, as well as a location in the input stream indicating where the failure occurred (which can be gotten from the Scanner). |
Method Summary | |
---|---|
SyntaxException.Reason |
getReason()
obtain the reason why the parsing failed. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SyntaxException(SyntaxException.Reason r, int line, int column)
r
- line
- column
- Method Detail |
---|
public SyntaxException.Reason getReason()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |