sofya.base.exceptions
Class BadFileFormatException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by sofya.base.exceptions.BadFileFormatException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DatabaseEOFException, InterfaceClassfileException, LocatableFileException

public class BadFileFormatException
extends java.io.IOException

Exception that indicates that a given file contains data that is malformed, corrupted, not the output of a Sofya tool, or otherwise unreadable by the file handler.

Version:
08/19/2005
Author:
Hitesh Sharma
See Also:
Serialized Form

Constructor Summary
BadFileFormatException()
          Creates new instance of this exception using the default message.
BadFileFormatException(java.lang.String msg)
          Creates new instance of this exception with a given message.
BadFileFormatException(java.lang.String s, java.lang.Throwable e)
          Creates an instance with the given message wrapping another exception.
 
Method Summary
 java.lang.Throwable getCause()
          Gets the exception that is the original source of the problem (may be null).
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BadFileFormatException

public BadFileFormatException()
Creates new instance of this exception using the default message.


BadFileFormatException

public BadFileFormatException(java.lang.String msg)
Creates new instance of this exception with a given message.

Parameters:
msg - Message to be associated with this exception in place of the default message.

BadFileFormatException

public BadFileFormatException(java.lang.String s,
                              java.lang.Throwable e)
Creates an instance with the given message wrapping another exception.

Method Detail

getCause

public java.lang.Throwable getCause()
Gets the exception that is the original source of the problem (may be null).

Overrides:
getCause in class java.lang.Throwable