Exception: OAuth2::AuthError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- OAuth2::AuthError
- Defined in:
- lib/oauth20/auth_error.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
Instance Method Summary collapse
-
#initialize(message, description = nil) ⇒ AuthError
constructor
A new instance of AuthError.
- #to_error_info ⇒ Object
Constructor Details
#initialize(message, description = nil) ⇒ AuthError
Returns a new instance of AuthError.
18 19 20 21 |
# File 'lib/oauth20/auth_error.rb', line 18 def initialize(, description = nil) super() @description = description end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
16 17 18 |
# File 'lib/oauth20/auth_error.rb', line 16 def description @description end |
Instance Method Details
#to_error_info ⇒ Object
23 24 25 26 |
# File 'lib/oauth20/auth_error.rb', line 23 def to_error_info desc = "&error_description=#{self.description}" unless description.nil? "error=#{}#{desc}" end |