|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttip.Errors
public class Errors
Methods and intertype declarations having to do with error handling.
Constructor Summary | |
---|---|
Errors()
|
Method Summary | |
---|---|
static void |
check()
Check if any errors have occurred yet. |
static void |
error(Token pos,
String message)
Report an error at a specific position in a source file. |
static void |
errorMessage(String message)
Report an error not associated with a syntax node, such as a file error or parse error. |
static void |
fatalError(Token pos,
String message)
Report an error at a specific position in a source file and stop the compilation. |
static void |
reset()
Reset the error flag for a fresh compilation |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Errors()
Method Detail |
---|
public static void error(Token pos, String message)
pos
- the position at which the error occurredmessage
- the error messagepublic static void fatalError(Token pos, String message)
pos
- the position at which the error occurredmessage
- the error messagepublic static void errorMessage(String message)
message
- the error messagepublic static void check()
SourceError
- if any error has occurred.public static void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |