Exception: OmniAuth::Strategies::MakerSquare::CallbackError
- Inherits:
-
StandardError
- Object
- StandardError
- OmniAuth::Strategies::MakerSquare::CallbackError
- Defined in:
- lib/omniauth/strategies/makersquare.rb
Overview
An error that is indicated in the OAuth 2.0 callback. This could be a ‘redirect_uri_mismatch` or other
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#error_reason ⇒ Object
Returns the value of attribute error_reason.
-
#error_uri ⇒ Object
Returns the value of attribute error_uri.
Instance Method Summary collapse
-
#initialize(error, error_reason = nil, error_uri = nil) ⇒ CallbackError
constructor
A new instance of CallbackError.
- #message ⇒ Object
Constructor Details
#initialize(error, error_reason = nil, error_uri = nil) ⇒ CallbackError
Returns a new instance of CallbackError.
134 135 136 137 138 |
# File 'lib/omniauth/strategies/makersquare.rb', line 134 def initialize(error, error_reason = nil, error_uri = nil) self.error = error self.error_reason = error_reason self.error_uri = error_uri end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
132 133 134 |
# File 'lib/omniauth/strategies/makersquare.rb', line 132 def error @error end |
#error_reason ⇒ Object
Returns the value of attribute error_reason.
132 133 134 |
# File 'lib/omniauth/strategies/makersquare.rb', line 132 def error_reason @error_reason end |
#error_uri ⇒ Object
Returns the value of attribute error_uri.
132 133 134 |
# File 'lib/omniauth/strategies/makersquare.rb', line 132 def error_uri @error_uri end |
Instance Method Details
#message ⇒ Object
140 141 142 |
# File 'lib/omniauth/strategies/makersquare.rb', line 140 def [error, error_reason, error_uri].compact.join(' | ') end |