sofya.base.exceptions
Class EOLException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
sofya.base.exceptions.BadFileFormatException
sofya.base.exceptions.LocatableFileException
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 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 |
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.
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.