Package org.biojava.utils
Class ParseErrorEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.biojava.utils.ParseErrorEvent
-
- All Implemented Interfaces:
Serializable
public class ParseErrorEvent extends 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
Constructors Constructor Description ParseErrorEvent(Object theSource)
Construct a ParseErrorEvent with no other information.ParseErrorEvent(Object theSource, String theMessage)
Construct a ParseErrorEvent with a message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
Find the message about this eventString
toString()
-
Methods inherited from class java.util.EventObject
getSource
-
-
-
-
Constructor Detail
-
ParseErrorEvent
public ParseErrorEvent(Object theSource)
Construct a ParseErrorEvent with no other information.- Parameters:
theSource
- The source of the parse error
-
ParseErrorEvent
public ParseErrorEvent(Object theSource, String theMessage)
Construct a ParseErrorEvent with a message.- Parameters:
theSource
- The source of the parse error.theMessage
- The message.
-
-
Method Detail
-
getMessage
public String getMessage()
Find the message about this event- Returns:
- The message.
-
toString
public String toString()
- Overrides:
toString
in classEventObject
-
-