# `MishkaPay.Errors.Refused`
[🔗](https://github.com/mishka-group/mishka_pay/blob/v0.0.1/lib/mishka_pay/__errors/refused.ex#L5)

Refused by the project itself, before the provider was asked: a plugin on
`mishka_pay:checkout:before` said no (out of stock, a blocked buyer, a closed shop), or could not
answer, which counts as no.

  * `:operation`: `:checkout`.
  * `:reason`: the plugin's own words, or why it gave none: `:cannot_run`, `:raised`,
    `:exited`, `:timeout`, `:invalid_answer`.

# `exception`

```elixir
@spec exception(opts :: Keyword.t()) :: %MishkaPay.Errors.Refused{
  __exception__: term(),
  bread_crumbs: term(),
  class: term(),
  operation: term(),
  path: term(),
  reason: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}
```

Create an `Elixir.MishkaPay.Errors.Refused` without raising it.

## Keys

- :operation
- :reason

---

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