LeXtract.Error.Unknown exception (lextract v0.1.2)

View Source

Error class for unexpected errors.

A catch-all for errors that don't fit other categories or represent truly unexpected system failures.

Examples

iex> error = LeXtract.Error.Unknown.Unknown.exception(error: "unexpected failure")
iex> match?(%LeXtract.Error.Unknown.Unknown{}, error)
true

Summary

Functions

Create an Elixir.LeXtract.Error.Unknown without raising it.

Callback implementation for Exception.message/1.

Functions

exception(args)

@spec exception(opts :: Keyword.t()) :: %LeXtract.Error.Unknown{
  __exception__: true,
  bread_crumbs: term(),
  class: term(),
  errors: term(),
  path: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Create an Elixir.LeXtract.Error.Unknown without raising it.

Keys

  • :errors

message(map)

Callback implementation for Exception.message/1.