module Payjp
  class CardError < PayjpError
    attr_reader :param, :code

    def initialize(message, param, code, http_status = nil, http_body = nil, json_body = nil)
      super(message, http_status, http_body, json_body)
      @param = param
      @code = code
    end
  end
end
