stripe-ruby/lib/stripe/errors/card_error.rb
Kyle Conroy 053c44f35c Add request IDs and HTTP headers to errors
The request ID, if it exists, is now added to the output for the error
2015-07-02 13:54:02 -07:00

13 lines
330 B
Ruby

module Stripe
class CardError < StripeError
attr_reader :param, :code
def initialize(message, param, code, http_status=nil, http_body=nil, json_body=nil,
http_headers=nil)
super(message, http_status, http_body, json_body, http_headers)
@param = param
@code = code
end
end
end