sofya.base.exceptions
Class EOLException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by sofya.base.exceptions.BadFileFormatException
                  extended by sofya.base.exceptions.LocatableFileException
                      extended by sofya.base.exceptions.EOLException
All Implemented Interfaces:
java.io.Serializable

public class EOLException
extends LocatableFileException

Exception that indicates that a line ending was encountered prematurely in a database file.

Version:
11/04/2004
Author:
Alex Kinneer
See Also:
Serialized Form

Constructor Summary
EOLException(int lineNum)
          Creates a new end of line exception.
EOLException(java.lang.String msg, int lineNum)
          Creates a new end of line exception with a message.
 
Method Summary
 java.lang.String getMessage()
          Displays the message associated with this exception.
 
Methods inherited from class sofya.base.exceptions.LocatableFileException
getLineNumber, toString
 
Methods inherited from class sofya.base.exceptions.BadFileFormatException
getCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EOLException

public EOLException(int lineNum)
Creates a new end of line exception.

Parameters:
lineNum - Line which terminated prematurely.

EOLException

public EOLException(java.lang.String msg,
                    int lineNum)
Creates a new end of line exception with a message.

Parameters:
msg - Message associated with this exception.
lineNum - Line which terminated prematurely.
Method Detail

getMessage

public java.lang.String getMessage()
Displays the message associated with this exception.

Overrides:
getMessage in class LocatableFileException
Returns:
The message associated with this exception.