require 'payg/errors/payg_error' module Payg # Bad request to API. Missing a field or an invalid field. # Error in merchant request. Check the description and correct the request accordingly. class BadRequestError < Payg::Error attr_reader :field def initialize(code, status, field = nil) super(code, status) @field = field end end end