Exception: Stripe::InvalidRequestError

Inherits:
StripeError
  • Object
show all
Defined in:
lib/stripe/errors.rb

Overview

InvalidRequestError is raised when a request is initiated with invalid parameters.

Instance Attribute Summary collapse

Attributes inherited from StripeError

#code, #error, #http_body, #http_headers, #http_status, #json_body, #message, #request_id, #response

Instance Method Summary collapse

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(message, param, http_status: nil, http_body: nil,
               json_body: nil, http_headers: nil, code: nil)
  super(message, http_status: http_status, http_body: http_body,
                 json_body: json_body, http_headers: http_headers,
                 code: code)
  @param = param
end

Instance Attribute Details

#paramObject

Returns the value of attribute param.



88
89
90
# File 'lib/stripe/errors.rb', line 88

def param
  @param
end