Package org.roaringbitmap
Class InvalidRoaringFormat
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.roaringbitmap.InvalidRoaringFormat
- All Implemented Interfaces:
Serializable
Exception thrown when attempting to deserialize a roaring bitmap from
an input stream missing a cookie or having other similar anomalies.
Some code may translate it to an IOException
for convenience when the cause of the problem can be cleanly interpreted as
an IO issue. However, when memory-mapping the file from a ByteBuffer,
the exception is used as a RuntimeException.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionConvert the exception to an IOException (convenience function)Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidRoaringFormat
Exception constructor.- Parameters:
string
- message
-
-
Method Details
-
toIOException
Convert the exception to an IOException (convenience function)- Returns:
- an IOException with a related error message.
-