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

Copy Markdown View Source

Exception returned or raised when a TomlElixir.Document edit fails.

  • :reason - why the edit failed.
  • :path - the key path passed to the edit, as strings with integer indexes.

Summary

Functions

Callback implementation for Exception.message/1.

Types

t()

@type t() :: %TomlElixir.Document.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.