org.gillius.realdb
Class BadFileException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.gillius.realdb.BadFileException
All Implemented Interfaces:
java.io.Serializable

public class BadFileException
extends java.lang.Exception

BadFileException is thrown when a file given does not match the structure of a RealDB database, RealDB definition language file, or RealDB query language file. When this exception is thrown as opposed to IOException, it means the database is corrupted but there were no problems reading the file, whereas with an IOException, the underlying IO access had a problem and the database could be OK after reopening and recovery.

A BadFileException may indicate a bug in RealDB, or an external source of corruption on the database (such as trying to open a file that is not a database or was modified by something other than RealDB).

Author:
Jason Winnebeck
See Also:
Serialized Form

Constructor Summary
BadFileException()
           
BadFileException(java.lang.String message)
           
BadFileException(java.lang.String message, java.lang.Throwable cause)
           
BadFileException(java.lang.Throwable cause)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

BadFileException

public BadFileException()

BadFileException

public BadFileException(java.lang.String message)

BadFileException

public BadFileException(java.lang.String message,
                        java.lang.Throwable cause)

BadFileException

public BadFileException(java.lang.Throwable cause)


Copyright © 2008-2010 Jason Winnebeck. All Rights Reserved.