OmniBuf.Error exception (omnibuf v0.1.0)

Copy Markdown View Source

Exception struct representing OmniBuf wire decoding, validation, or encoding errors.

Summary

Types

t()

@type t() :: %OmniBuf.Error{__exception__: true, message: String.t(), reason: atom()}

Functions

new(reason, message)

@spec new(atom(), String.t()) :: t()

parse(reason, message)

@spec parse(atom(), String.t()) :: {:error, t()}