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: errors.rb
    path of file: ./repos/active_record_doctor/lib/active_record_doctor
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module ActiveRecordDoctor # :nodoc:
  def self.handle_exception
    yield
  rescue
    
      def details
        <<-MESSAGE
The configuration file configured the same detector more than once which is
disallowed. Detector configuration should be either:

- absent - to use the defaults
- present exactly once - to override the defaults

Please ensure the detector is configured at most once and retry.
        MESSAGE
      end