Package org.roaringbitmap
Class InvalidRoaringFormat
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.roaringbitmap.InvalidRoaringFormat
-
- All Implemented Interfaces:
Serializable
public class InvalidRoaringFormat extends RuntimeException
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidRoaringFormat(String string)
Exception constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IOException
toIOException()
Convert 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 Detail
-
InvalidRoaringFormat
public InvalidRoaringFormat(String string)
Exception constructor.- Parameters:
string
- message
-
-
Method Detail
-
toIOException
public IOException toIOException()
Convert the exception to an IOException (convenience function)- Returns:
- an IOException with a related error message.
-
-