|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectErr
public class Err
Functions for printing error messages. Computer Sciences 536.
Method Summary | |
---|---|
static void |
badIntLiteral(int line,
int column,
java.lang.String text)
Prints an error message concerning an invalid integer literal (one whose value is larger than Integer.MAX_VALUE). |
static void |
invalidCharacter(int line,
int column,
java.lang.String text)
Prints an error message concerning an invalid input character. |
static void |
parseError(int line,
int column,
java.lang.String text)
Prints an error message concerning a syntax error. |
static void |
unterminatedString(int line,
int column,
java.lang.String text)
Prints an error message concerning a non-terminated string literal. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void invalidCharacter(int line, int column, java.lang.String text)
line
- the line number where the error occurred.column
- the position on the line where the error occurred.text
- a one-character String containing the invalid character.public static void unterminatedString(int line, int column, java.lang.String text)
line
- the line number where the error occurred.column
- the position on the line of the first character of the
string literal appeared.text
- the entire non-terminated string.public static void badIntLiteral(int line, int column, java.lang.String text)
line
- the line number where the error occurred.column
- the position on the line of the first character of the
integer literal appeared.text
- the entire invalid integer literal.public static void parseError(int line, int column, java.lang.String text)
line
- the line number where the error occurred.column
- the position on the line of the first character of the
integer literal appeared.text
- the error message from the parser.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |