org.biojava.utils
Class ParseErrorEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.biojava.utils.ParseErrorEvent
All Implemented Interfaces:
java.io.Serializable

public class ParseErrorEvent
extends java.util.EventObject

Event which signals a bad line when parsing a record.

Author:
Greg Cox
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ParseErrorEvent(java.lang.Object theSource)
          Construct a ParseErrorEvent with no other information.
ParseErrorEvent(java.lang.Object theSource, java.lang.String theMessage)
          Construct a ParseErrorEvent with a message.
 
Method Summary
 java.lang.String getMessage()
          Find the message about this event
 java.lang.String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParseErrorEvent

public ParseErrorEvent(java.lang.Object theSource)
Construct a ParseErrorEvent with no other information.

Parameters:
theSource - The source of the parse error

ParseErrorEvent

public ParseErrorEvent(java.lang.Object theSource,
                       java.lang.String theMessage)
Construct a ParseErrorEvent with a message.

Parameters:
theSource - The source of the parse error.
theMessage - The message.
Method Detail

getMessage

public java.lang.String getMessage()
Find the message about this event

Returns:
The message.

toString

public java.lang.String toString()