Class: OmniauthOpenidFederation::HttpError

Inherits:
Error
  • Object
show all
Defined in:
lib/omniauth_openid_federation/http_errors.rb

Direct Known Subclasses

BadRequest, Forbidden, Unauthorized

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, message = nil, response = nil) ⇒ HttpError

Returns a new instance of HttpError.



5
6
7
8
# File 'lib/omniauth_openid_federation/http_errors.rb', line 5

def initialize(status, message = nil, response = nil)
  @response = response
  super(message || "HTTP error #{status}")
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



3
4
5
# File 'lib/omniauth_openid_federation/http_errors.rb', line 3

def response
  @response
end