Errx exception (errx v0.4.1)

Summary

Types

@type t() :: %Errx{
  __exception__: true,
  file: term(),
  func: term(),
  metadata: term(),
  parent: term(),
  reason: term()
}

Functions

Link to this macro

match(reason)

(macro)
Link to this function

match(err1, err2)

@spec match(any(), any()) :: boolean()
Link to this function

metadata(error)

@spec metadata(any()) :: any()
Link to this function

metadata(error, metadata)

@spec metadata(any(), any()) :: {:error, t()}
@spec wrap(any()) :: {:error, t()}
Link to this function

wrap(parent_error, child_error)

@spec wrap(any(), any()) :: {:error, t()}