Exception: ActiveSanction::HttpClient::Error

Inherits:
FetchError show all
Defined in:
lib/active_sanction/http_client/errors.rb

Overview

Base for every failure this client raises, all of them cases where the server never produced a status to hand back. Statuses it did produce -- 403, 500, 304 -- come back as a Response instead; see Response.

A FetchError, so a caller backing off on "the bytes could not be obtained" does not have to know that this library speaks net/http. The subclasses below split it further only where the fix differs.

Instance Attribute Summary

Attributes included from Error

#source_id, #status

Method Summary

Methods inherited from FetchError

#retryable?

Methods included from Error

#in_source, #initialize, #retryable?, #to_h