Exception: OAuth2c::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/oauth2c/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#errorObject

Returns the value of attribute error.



17
18
19
# File 'lib/oauth2c/error.rb', line 17

def error
  @error
end