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: name_error_checkers.rb
    path of file: ./repos/truffleruby/lib/mri/did_you_mean/spell_checkers
    
    the code of the file until where you have to start completion: require_relative 'name_error_checkers/class_name_checker'
req
    
    def new(exception)
      case exception.original_message
      when /uninitialized constant/
        ClassNameChecker
      when /undefined local variable or method/,
           /undefined method/,
           /uninitialized class variable/,
           /no member '.*' in struct/
        VariableNameChecker
      else
        NullChecker
      end.new(exception)
    end