sofya.base.exceptions
Class DataTypeException

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.DataTypeException
All Implemented Interfaces:
java.io.Serializable

public class DataTypeException
extends LocatableFileException

Exception that indicates that a file contains data of a different type than was expected at a particular location.

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

Constructor Summary
DataTypeException(int lineNum)
          Creates a new data type exception.
DataTypeException(java.lang.String msg, int lineNum)
          Creates a new data type exception with a message.
 
Method Summary
 
Methods inherited from class sofya.base.exceptions.LocatableFileException
getLineNumber, getMessage, 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

DataTypeException

public DataTypeException(int lineNum)
Creates a new data type exception.

Parameters:
lineNum - Line in the file containing the unexpected type of data.

DataTypeException

public DataTypeException(java.lang.String msg,
                         int lineNum)
Creates a new data type exception with a message.

Parameters:
msg - Message associated with this data type exception.
lineNum - Line in the file containing the unexpected type of data.