Exception: OAuth2c::Error
- Inherits:
-
StandardError
- Object
- StandardError
- OAuth2c::Error
- Defined in:
- lib/oauth2c/error.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
Instance Method Summary collapse
-
#initialize(error, error_description) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(error, error_description) ⇒ Error
Returns a new instance of Error.
22 23 24 25 26 |
# File 'lib/oauth2c/error.rb', line 22 def initialize(error, error_description) @error = error @error_description = error_description super("#{error}: #{error_description}") end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
17 18 19 |
# File 'lib/oauth2c/error.rb', line 17 def error @error end |