agg.parser
Class ParserErrorEvent

java.lang.Object
  extended by java.util.EventObject
      extended by agg.parser.ParserEvent
          extended by agg.parser.ParserErrorEvent
All Implemented Interfaces:
java.io.Serializable

public class ParserErrorEvent
extends ParserEvent

This event is used if the parser has to handle any error. Typically an error occurs if a graph cannot be parsed.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class agg.parser.ParserEvent
FINISHED, message, PAIR_FINISHED
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ParserErrorEvent(java.lang.Object source)
          This constructor is inherited from ParserEvent.
ParserErrorEvent(java.lang.Object source, java.lang.String _message)
          Creates a new event with a error message.
 
Method Summary
 java.util.Enumeration<java.lang.Object> getErrorGraph()
          If a graph is the source of this event this part of the graph is returned which causes the error.
 java.lang.String getErrorString()
          Returns the error text.
 
Methods inherited from class agg.parser.ParserEvent
getMessage, setMessage
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParserErrorEvent

public ParserErrorEvent(java.lang.Object source)
This constructor is inherited from ParserEvent.

Parameters:
source - The source of the event.

ParserErrorEvent

public ParserErrorEvent(java.lang.Object source,
                        java.lang.String _message)
Creates a new event with a error message.

Parameters:
source - The source of the event.
_message - The error message.
Method Detail

getErrorString

public java.lang.String getErrorString()
Returns the error text.

Returns:
The error message.

getErrorGraph

public java.util.Enumeration<java.lang.Object> getErrorGraph()
If a graph is the source of this event this part of the graph is returned which causes the error.

Returns:
A set of graph object.