Exception: OmniAuth::Strategies::WeChat::CallbackError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error, error_reason = nil) ⇒ CallbackError

Returns a new instance of CallbackError.



151
152
153
154
# File 'lib/omniauth/strategies/wechat.rb', line 151

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

Instance Attribute Details

#errorObject

Returns the value of attribute error.



150
151
152
# File 'lib/omniauth/strategies/wechat.rb', line 150

def error
  @error
end

#error_reasonObject

Returns the value of attribute error_reason.



150
151
152
# File 'lib/omniauth/strategies/wechat.rb', line 150

def error_reason
  @error_reason
end

Instance Method Details

#messageObject



156
157
158
# File 'lib/omniauth/strategies/wechat.rb', line 156

def message
  [self.error, self.error_reason].compact.join(' | ')
end