StaticMaps.UnavailableError exception (staticmaps v0.1.1)

Copy Markdown View Source

The error returned when no source could render the map.

A render returns it when every source failed or was skipped because its circuit breaker is open, after recent renders from it failed. :attempts lists each source module in the order it was tried, with the StaticMaps.TileError it failed with, or :circuit_open if it was skipped.

When the only source tried fails, the render returns that StaticMaps.TileError itself. Under on_tile_error: :fill, a render where at least one source was tried returns an image instead.

Summary

Types

t()

@type t() :: %StaticMaps.UnavailableError{
  __exception__: term(),
  attempts: [{module(), StaticMaps.TileError.t() | :circuit_open}]
}