Class Err

java.lang.Object
  extended by Err

public class Err
extends java.lang.Object

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

invalidCharacter

public static void invalidCharacter(int line,
                                    int column,
                                    java.lang.String text)
Prints an error message concerning an invalid input character.

Parameters:
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.

unterminatedString

public static void unterminatedString(int line,
                                      int column,
                                      java.lang.String text)
Prints an error message concerning a non-terminated string literal.

Parameters:
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.

badIntLiteral

public 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).

Parameters:
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.

parseError

public static void parseError(int line,
                              int column,
                              java.lang.String text)
Prints an error message concerning a syntax error.

Parameters:
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.