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

Returns a new instance of Error.



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

def initialize(status, response)
  @status = status
  @response = response
  message = [response[:error], response[:error_description]].compact.join(' :: ')
  super message
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