# `BB.Error.Invalid.Inference.LoadFailed`
[🔗](https://github.com/beam-bots/bb_inference/blob/main/lib/bb/error/invalid/inference/load_failed.ex#L5)

A model's runtime could not load its artefact.

`reason` is whatever the runtime returned from `c:BB.Inference.Runtime.load/2`.

# `t`

```elixir
@type t() :: %BB.Error.Invalid.Inference.LoadFailed{
  __exception__: term(),
  bread_crumbs: term(),
  class: term(),
  model: atom(),
  path: term(),
  reason: term(),
  runtime: module(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}
```

# `exception`

```elixir
@spec exception(opts :: Keyword.t()) :: %BB.Error.Invalid.Inference.LoadFailed{
  __exception__: term(),
  bread_crumbs: term(),
  class: term(),
  model: term(),
  path: term(),
  reason: term(),
  runtime: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}
```

Create an `Elixir.BB.Error.Invalid.Inference.LoadFailed` without raising it.

## Keys

- :model
- :runtime
- :reason

---

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