org.garret.consus
Class InvalidOIDError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.garret.consus.InvalidOIDError
All Implemented Interfaces:
java.io.Serializable

public class InvalidOIDError
extends java.lang.RuntimeException

This exception is thrown when an object with an incorrect OID is accessed (OID = 0, nonexisted OID, OID of deleted object, ...)

See Also:
Serialized Form

Constructor Summary
InvalidOIDError(int oid)
          Construct exception cause by using an invalid OID
InvalidOIDError(int oid, long pos)
          Construct exception caused by using an invalid OID
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidOIDError

public InvalidOIDError(int oid)
Construct exception cause by using an invalid OID

Parameters:
oid - of object

InvalidOIDError

public InvalidOIDError(int oid,
                       long pos)
Construct exception caused by using an invalid OID

Parameters:
oid - of object
pos - offset to the object in file + flags