org.helidb.io
Class NotEnoughDataException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.helidb.lang.DatabaseException
                  extended by org.helidb.io.NotEnoughDataException
All Implemented Interfaces:
Serializable

public class NotEnoughDataException
extends DatabaseException

This exception is thrown by data reading operations that could not read as much data as they require from the backing data storage.

Since:
1.0
Author:
Karl Gustafsson
See Also:
Serialized Form
In_jar:
helidb-core

Constructor Summary
NotEnoughDataException(long wanted, long got)
          Create a new NotEnoughDataException.
NotEnoughDataException(long wanted, long got, long pos)
          Create a new NotEnoughDataException.
 
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

NotEnoughDataException

public NotEnoughDataException(long wanted,
                              long got)
Create a new NotEnoughDataException.

Parameters:
wanted - The number of bytes that the operation wanted.
got - The number of bytes that it got.

NotEnoughDataException

public NotEnoughDataException(long wanted,
                              long got,
                              long pos)
Create a new NotEnoughDataException.

Parameters:
wanted - The number of bytes that the operation wanted.
got - The number of bytes that it got.
pos - The position in the data storage where the error happened.