StrawHat v0.3.0 StrawHat.Error.ErrorMetadata View Source

Metadata used on StrawHat.Error.t/0. It is a representation of key value pair into StrawHat.Error.ErrorMetadata.t/0. Most likely used through StrawHat.Error.

Link to this section Summary

Types

t()
  • key: Key of the metadata.
  • value: Value of the metadata

Link to this section Types

Link to this type t() View Source
t() :: %StrawHat.Error.ErrorMetadata{key: String.t(), value: String.t()}
  • key: Key of the metadata.
  • value: Value of the metadata.

Link to this section Functions

Link to this function new(value_tuple) View Source
new({String.t() | atom(), any()}) :: t()

Creates a StrawHat.Error.ErrorMetadata.t/0 from a tuple.

Link to this function serialize(metadata) View Source
serialize(Keyword.t()) :: [t()]

Serialize a Keyword list into a list of StrawHat.Error.ErrorMetadata.t/0.