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

Copy Markdown View Source

A model's artefact isn't where the build should have put it.

The :bb_inference compiler places artefacts in the application's priv at build time. A download that failed is a warning, not a build failure, so a build can succeed without one; this is where that shows up.

Summary

Types

t()

@type t() :: %BB.Error.Invalid.Inference.ArtefactMissing{
  __exception__: term(),
  artefact_path: Path.t() | nil,
  bread_crumbs: term(),
  class: term(),
  model: atom(),
  path: term(),
  source: String.t(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Functions

exception(args)

@spec exception(opts :: Keyword.t()) :: %BB.Error.Invalid.Inference.ArtefactMissing{
  __exception__: term(),
  artefact_path: term(),
  bread_crumbs: term(),
  class: term(),
  model: term(),
  path: term(),
  source: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Create an Elixir.BB.Error.Invalid.Inference.ArtefactMissing without raising it.

Keys

  • :model
  • :artefact_path
  • :source