|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.io.IOException sofya.base.exceptions.BadFileFormatException sofya.base.exceptions.LocatableFileException
public class LocatableFileException
Exception that indicates that a format error was encountered during the reading of a database file that can be traced to a specific location in that file.
Constructor Summary | |
---|---|
LocatableFileException(int lineNum)
Creates a new locatable file exception. |
|
LocatableFileException(java.lang.String msg,
int lineNum)
Creates a new locatable file exception with a message. |
Method Summary | |
---|---|
int |
getLineNumber()
Gets the line number at which the format error was encountered. |
java.lang.String |
getMessage()
Displays the message associated with this exception. |
java.lang.String |
toString()
Converts this exception to string representation. |
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 |
---|
public LocatableFileException(int lineNum)
lineNum
- Line at which the format error occurred.public LocatableFileException(java.lang.String msg, int lineNum)
msg
- Message associated with this exception.lineNum
- Line at which the format error occurred.Method Detail |
---|
public int getLineNumber()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String toString()
toString
in class java.lang.Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |