Pkcs11ex.Error exception (pkcs11ex v0.1.0)

Copy Markdown View Source

Library exception used for !-variant raises and for configuration failures that prevent the OTP application from starting.

Fields:

  • :reason — an atom or tagged tuple from docs/specs/api.md §4.1.
  • :path — for configuration errors, the key path of the offending entry (e.g., [:slots, :legal_proxy, :pin_callback]); nil otherwise.
  • :context — extra diagnostic data; a map.

Summary

Types

t()

@type t() :: %Pkcs11ex.Error{
  __exception__: true,
  context: map(),
  path: [atom()] | nil,
  reason: atom() | {atom(), term()}
}