Exception: Stripe::InvalidRequestError
- Inherits:
-
StripeError
- Object
- StandardError
- StripeError
- Stripe::InvalidRequestError
- Defined in:
- lib/stripe/errors.rb
Overview
InvalidRequestError is raised when a request is initiated with invalid parameters.
Instance Attribute Summary collapse
-
#param ⇒ Object
Returns the value of attribute param.
Attributes inherited from StripeError
#code, #error, #http_body, #http_headers, #http_status, #json_body, #message, #request_id, #response
Instance Method Summary collapse
-
#initialize(message, param, http_status: nil, http_body: nil, json_body: nil, http_headers: nil, code: nil) ⇒ InvalidRequestError
constructor
A new instance of InvalidRequestError.
Methods inherited from StripeError
#construct_error_object, #idempotent_replayed?, #to_s
Constructor Details
#initialize(message, param, http_status: nil, http_body: nil, json_body: nil, http_headers: nil, code: nil) ⇒ InvalidRequestError
Returns a new instance of InvalidRequestError.
90 91 92 93 94 95 96 |
# File 'lib/stripe/errors.rb', line 90 def initialize(, param, http_status: nil, http_body: nil, json_body: nil, http_headers: nil, code: nil) super(, http_status: http_status, http_body: http_body, json_body: json_body, http_headers: http_headers, code: code) @param = param end |
Instance Attribute Details
#param ⇒ Object
Returns the value of attribute param.
88 89 90 |
# File 'lib/stripe/errors.rb', line 88 def param @param end |