# `Pkcs11ex.Error`
[🔗](https://github.com/utaladriz/pkcs11ex/blob/v0.1.0/lib/pkcs11ex/error.ex#L1)

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.

# `t`

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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
