Failure returned by the public BAM API.
message is safe to show to a caller. It names the format, the operation,
and a file offset or line when those are known. It does not include file
bytes. reason is an atom defined by this library. Tag names, reference
names, and other file bytes are never turned into atoms.
category is the stable class a caller can match on. context carries
small identifiers such as :format, :path, :offset, :virtual_offset,
and :line.
Summary
Functions
Error for an operation on a handle that was already released.
Error for a caller value this function does not accept.
Builds an error.
Error for a path that does not exist.
Error for a feature this version does not implement.
Types
@type category() ::
:not_implemented
| :not_found
| :io
| :closed
| :invalid_argument
| :invalid_magic
| :truncated
| :checksum
| :resource_limit
| :corrupt
| :unsupported
Functions
Error for an operation on a handle that was already released.
Error for a caller value this function does not accept.
Builds an error.
context is merged with %{format: format} when :format is passed
separately through the map the caller already built.
Error for a path that does not exist.
Error for a feature this version does not implement.