SerpCheap.Error exception (serpcheap v0.2.0)

Copy Markdown View Source

A typed error mirroring the serp.cheap API error taxonomy.

Summary

Functions

Whether the client retries this error automatically.

Types

t()

@type t() :: %SerpCheap.Error{
  __exception__: true,
  code: String.t(),
  message: String.t(),
  retry_after_ms: integer() | nil,
  status: integer() | nil
}

Functions

retryable?(error)

@spec retryable?(t()) :: boolean()

Whether the client retries this error automatically.