Exception: OAuth::OAuthError

Inherits:
StandardError
  • Object
show all
Defined in:
app/services/oauth.rb

Overview

Base class for all OAuth errors. These map to error codes in the spec.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, message) ⇒ OAuthError

Returns a new instance of OAuthError.


4
5
6
7
# File 'app/services/oauth.rb', line 4

def initialize(code, message)
  super message
  @code = code.to_sym
end

Instance Attribute Details

#codeObject (readonly)

The OAuth error code.


9
10
11
# File 'app/services/oauth.rb', line 9

def code
  @code
end