Class 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:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      necessary serial id
      See Also:
  • Constructor Details

    • InvalidRoaringFormat

      public InvalidRoaringFormat(String string)
      Exception constructor.
      Parameters:
      string - message
  • Method Details

    • toIOException

      public IOException toIOException()
      Convert the exception to an IOException (convenience function)
      Returns:
      an IOException with a related error message.