TomlElixir.Encoder.Error exception (Toml Elixir v3.3.0)

Copy Markdown View Source

Exception returned or raised when a value cannot be encoded to TOML.

  • :reason - message of the underlying failure.
  • :path - keys leading to the failing value, as strings, with integer indexes for array elements. An empty list means the failure happened at the top level.

Summary

Functions

Callback implementation for Exception.message/1.

Types

t()

@type t() :: %TomlElixir.Encoder.Error{
  __exception__: term(),
  path: [String.t() | non_neg_integer()],
  reason: String.t()
}

Functions

message(error)

@spec message(t()) :: String.t()

Callback implementation for Exception.message/1.