org.helidb.io
Class NotEnoughDataException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.helidb.lang.DatabaseException
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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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.