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

- (Error) initialize(status, response)



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

- (Object) response

Returns the value of attribute response



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

def response
  @response
end

- (Object) status

Returns the value of attribute status



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

def status
  @status
end