Exception: AtprotoAuth::HttpClient::HttpError

Inherits:
Error
  • Object
show all
Defined in:
lib/atproto_auth/http_client.rb

Overview

Error raised when an HTTP request fails

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, response) ⇒ HttpError

Returns a new instance of HttpError.



34
35
36
37
# File 'lib/atproto_auth/http_client.rb', line 34

def initialize(message, response)
  @response = response
  super(message)
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



32
33
34
# File 'lib/atproto_auth/http_client.rb', line 32

def response
  @response
end