BB.Error.Estimator.SyncMiss exception (bb v0.20.0)

Copy Markdown View Source

A driver input arrived but a paired non-driver input was older than the estimator's sync_tolerance.

Normally the framework drops these dispatches silently (with [:bb, :estimator, :dropped] telemetry, reason :sync_miss). This error type exists for algorithms or supervisors that want to surface the miss as a structured value instead.

Summary

Types

t()

@type t() :: %BB.Error.Estimator.SyncMiss{
  __exception__: true,
  bread_crumbs: term(),
  class: term(),
  driver_path: [atom()],
  gap_ms: number(),
  input_path: [atom()],
  path: term(),
  splode: term(),
  stacktrace: term(),
  tolerance_ms: number(),
  vars: term()
}

Functions

exception(args)

@spec exception(opts :: Keyword.t()) :: %BB.Error.Estimator.SyncMiss{
  __exception__: true,
  bread_crumbs: term(),
  class: term(),
  driver_path: term(),
  gap_ms: term(),
  input_path: term(),
  path: term(),
  splode: term(),
  stacktrace: term(),
  tolerance_ms: term(),
  vars: term()
}

Create an Elixir.BB.Error.Estimator.SyncMiss without raising it.

Keys

  • :driver_path
  • :input_path
  • :gap_ms
  • :tolerance_ms