Generic Interpreter 1.2
Private API

gi
Class Lexicon.Exception

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bygi.Lexicon.Exception
All Implemented Interfaces:
Serializable
Enclosing class:
Lexicon

protected class Lexicon.Exception
extends Exception

This class implements an Exception.

Version:
1.2
Author:
© 1999-2004 Craig A. Rich <carich@csupomona.edu>
See Also:
Serialized Form

Field Summary
private  StringBuffer message
          The extended error message.
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
Lexicon.Exception(String message)
          Constructs an Exception with a message.
 
Method Summary
(package private)  Lexicon.Exception extend(LineNumberReader source)
          Extends the error message in this Exception.
 String getMessage()
          Returns the error message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

message

private StringBuffer message

The extended error message.

Constructor Detail

Lexicon.Exception

public Lexicon.Exception(String message)

Constructs an Exception with a message.

Parameters:
message - the error message.
Method Detail

extend

Lexicon.Exception extend(LineNumberReader source)

Extends the error message in this Exception. The extended message includes the line number, message and source characters following the error.

Parameters:
source - the source character stream.
Returns:
this Exception with an extended message.

getMessage

public String getMessage()

Returns the error message.


 

© 1999-2004 Craig A. Rich <carich@csupomona.edu>