BB.Error.Invalid.Inference.LoadFailed exception (bb_inference v0.1.0)

Copy Markdown View Source

A model's runtime could not load its artefact.

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

Summary

Types

t()

@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()
}

Functions

exception(args)

@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