class LittleGhost::Providers::HTTPError
Reports a bounded HTTP or network failure from a provider connection.
Attributes
HTTP status, when a response was received, and the bounded response body.
HTTP status, when a response was received, and the bounded response body.
Public Class Methods
# File lib/little_ghost/providers/base.rb, line 11 def initialize(message, status: nil, body: nil) @status = status @body = body super(message) end
Captures a provider failure without retaining an unbounded response.
Calls superclass method
Public Instance Methods
Source
# File lib/little_ghost/providers/base.rb, line 18 def retryable? status.nil? || status == 408 || status == 409 || status == 429 || status >= 500 end
Whether retrying the same provider request may succeed.