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: partner_profile_update_service.rb
    path of file: ./repos/human-essentials/app/services
    
    the code of the file until where you have to start completion: class PartnerProfileUpdateService
  include ServiceObjectErrorsMixin
  attr_reader :error
  def initialize(old_partner, new_partner_params, new_profile_params)
    @partner = 
    
  def perform_profile_service(&block)
    begin
      @profile.transaction do
        yield block
      end
      @profile.reload
    rescue ActiveRecord::RecordNotFound => e
      Rails.logger.error "[!] #{self.class.name} failed to update profile #{@profile.id} because it does not exist"
      set_error(e)
    rescue => e
      Rails.logger.error "[!] #{self.class.name} failed to update profile for #{@profile.id}: #{@profile.errors.full_messages} [#{e.inspect}]"
      set_error(e)
    end
    self
  end