Exception: Garage::AuthBackendError

Inherits:
HTTPError
  • Object
show all
Defined in:
lib/garage/exceptions.rb

Instance Attribute Summary collapse

Attributes inherited from HTTPError

#status

Instance Method Summary collapse

Methods inherited from HTTPError

#status_code

Constructor Details

#initialize(response) ⇒ AuthBackendError

Returns a new instance of AuthBackendError.



43
44
45
46
47
# File 'lib/garage/exceptions.rb', line 43

def initialize(response)
  @status = :internal_server_error
  @response = response
  super("Auth backend responded error: status=#{response.status_code}")
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



41
42
43
# File 'lib/garage/exceptions.rb', line 41

def response
  @response
end