BB.Error.State.Camera.Timeout exception (bb_camera v0.1.1)

Copy Markdown View Source

No new frame arrived within the caller's timeout.

The outstanding demand is cancelled at the hub before this is returned, so nothing is left dangling and no frame is stranded in the caller's mailbox.

A timeout before any frame has ever arrived is the signal an HTTP route wants for answering 503 rather than committing a 200 to a camera that never produces.

Summary

Types

t()

@type t() :: %BB.Error.State.Camera.Timeout{
  __exception__: term(),
  bread_crumbs: term(),
  camera: atom(),
  class: term(),
  path: term(),
  robot: module(),
  splode: term(),
  stacktrace: term(),
  timeout: timeout(),
  vars: term()
}

Functions

exception(args)

@spec exception(opts :: Keyword.t()) :: %BB.Error.State.Camera.Timeout{
  __exception__: term(),
  bread_crumbs: term(),
  camera: term(),
  class: term(),
  path: term(),
  robot: term(),
  splode: term(),
  stacktrace: term(),
  timeout: term(),
  vars: term()
}

Create an Elixir.BB.Error.State.Camera.Timeout without raising it.

Keys

  • :robot
  • :camera
  • :timeout