Generic Interpreter 0.9
Private API

gi
Class Lexicon.Exception

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--gi.Lexicon.Exception
All Implemented Interfaces:
Serializable
Enclosing class:
Lexicon

protected class Lexicon.Exception
extends Exception

This class implements an Exception.

Version:
0.9
Author:
© 1999-2000 Craig A. Rich <carich@acm.org>
See Also:
Serialized Form

Field Summary
private  StringBuffer message
          The extended error message.
 
Fields inherited from class java.lang.Throwable
backtrace, detailMessage, serialVersionUID
 
Constructor Summary
Lexicon.Exception(String message)
          Constructs an Exception with a message.
 
Method Summary
(package private)  Lexicon.Exception extend(BufferedReader source)
          Extends the error message in this Exception.
 String getMessage()
          Returns the error message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, printStackTrace0, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, 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(BufferedReader 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.

Overrides:
getMessage in class Throwable

 

© 1999-2000 Craig A. Rich <carich@acm.org>