Exception: Rack::OAuth2::Client::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rack/oauth2/client/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, response) ⇒ Error



6
7
8
9
10
# File 'lib/rack/oauth2/client/error.rb', line 6

def initialize(status, response)
  @status = status
  @response = response
  super response[:error_description]
end

Instance Attribute Details

#responseObject

Returns the value of attribute response



5
6
7
# File 'lib/rack/oauth2/client/error.rb', line 5

def response
  @response
end

#statusObject

Returns the value of attribute status



5
6
7
# File 'lib/rack/oauth2/client/error.rb', line 5

def status
  @status
end