Exception: OmniAuth::Strategies::LastFm::CallbackError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/omniauth/strategies/last_fm.rb

Overview

error catching, based on OAuth2 callback

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error, error_reason) ⇒ CallbackError

Returns a new instance of CallbackError.



21
22
23
24
# File 'lib/omniauth/strategies/last_fm.rb', line 21

def initialize(error, error_reason)
  self.error = error
  self.error_reason = error_reason
end

Instance Attribute Details

#errorObject

Returns the value of attribute error.



20
21
22
# File 'lib/omniauth/strategies/last_fm.rb', line 20

def error
  @error
end

#error_reasonObject

Returns the value of attribute error_reason.



20
21
22
# File 'lib/omniauth/strategies/last_fm.rb', line 20

def error_reason
  @error_reason
end