Exception: OmniAuth::Strategies::WeChat::CallbackError
- Inherits:
-
StandardError
- Object
- StandardError
- OmniAuth::Strategies::WeChat::CallbackError
- Defined in:
- lib/omniauth/strategies/wechat.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#error_reason ⇒ Object
Returns the value of attribute error_reason.
Instance Method Summary collapse
-
#initialize(error, error_reason = nil) ⇒ CallbackError
constructor
A new instance of CallbackError.
- #message ⇒ Object
Constructor Details
#initialize(error, error_reason = nil) ⇒ CallbackError
Returns a new instance of CallbackError.
157 158 159 160 |
# File 'lib/omniauth/strategies/wechat.rb', line 157 def initialize(error, error_reason=nil) self.error = error self.error_reason = error_reason end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
156 157 158 |
# File 'lib/omniauth/strategies/wechat.rb', line 156 def error @error end |
#error_reason ⇒ Object
Returns the value of attribute error_reason.
156 157 158 |
# File 'lib/omniauth/strategies/wechat.rb', line 156 def error_reason @error_reason end |
Instance Method Details
#message ⇒ Object
162 163 164 |
# File 'lib/omniauth/strategies/wechat.rb', line 162 def [self.error, self.error_reason].compact.join(' | ') end |