You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: credit_card_operation.rb
    path of file: ./repos/workarea/core/app/models/workarea/payment
    
    the code of the file until where you have to start completion: module Workarea
  class Payment
    module CreditCardOperation
      d
    
      def handle_active_merchant_errors
        begin
          yield
        rescue ActiveMerchant::ResponseError => error
          error.response
        rescue ActiveMerchant::ActiveMerchantError,
                ActiveMerchant::ConnectionError => error
          ActiveMerchant::Billing::Response.new(false, nil)
        end