Exception: Stripe::OAuth::OAuthError
- Inherits:
-
StripeError
- Object
- StandardError
- StripeError
- Stripe::OAuth::OAuthError
- Defined in:
- lib/stripe/errors.rb
Overview
OAuthError is raised when the OAuth API returns an error.
Direct Known Subclasses
InvalidClientError, InvalidGrantError, InvalidRequestError, InvalidScopeError, UnsupportedGrantTypeError, UnsupportedResponseTypeError
Instance Attribute Summary
Attributes inherited from StripeError
#code, #http_body, #http_headers, #http_status, #json_body, #message, #request_id, #response
Instance Method Summary collapse
-
#initialize(code, description, http_status: nil, http_body: nil, json_body: nil, http_headers: nil) ⇒ OAuthError
constructor
A new instance of OAuthError.
Methods inherited from StripeError
Constructor Details
#initialize(code, description, http_status: nil, http_body: nil, json_body: nil, http_headers: nil) ⇒ OAuthError
Returns a new instance of OAuthError.
116 117 118 119 120 121 |
# File 'lib/stripe/errors.rb', line 116 def initialize(code, description, http_status: nil, http_body: nil, json_body: nil, http_headers: nil) super(description, http_status: http_status, http_body: http_body, json_body: json_body, http_headers: http_headers, code: code) end |