///|
/// Failures produced while reading or writing an Avro Object Container File.
///
/// All offsets are byte offsets in the container. Block indices are zero based.
pub(all) suberror OcfError {
  InvalidMagic
  InvalidSyncMarkerLength(actual~ : Int)
  UnsupportedCodec(String)
  InvalidMetadataKey(String)
  Truncated(offset~ : Int)
  InvalidBlockCount(count~ : Int64)
  BlockTooLarge(length~ : Int, limit~ : Int)
  TooManyRecords(count~ : Int64, limit~ : Int)
  SyncMismatch(block_index~ : Int)
  HeaderSchema(@schema.SchemaError)
  Datum(@codec.CodecError)
  Compression(codec~ : String, message~ : String)
} derive(Debug, Eq)