# File lib/foxtails/FXSettings.rb, line 17
    def check_entry(section, key, value)
      if section.length > MAXNAME
        raise StringOverflow,
              "FXSettings section '#{section[0..50]}...'\n" +
              "  is #{section.length} bytes; limit is #{MAXNAME}."
      end

      if key.length > MAXNAME
        raise StringOverflow,
              "FXSettings key '#{key[0..50]}...'\n" +
              "  in section [#{section}]\n" +
              "  is #{key.length} bytes; limit is #{MAXNAME}."
      end

      if value.length > MAXVALUE
        raise StringOverflow,
              "FXSettings value '#{value[0..50]}...'\n" +
              "  associated with key '#{key}' in section [#{section}]\n" +
              "  is #{value.length} bytes; limit is #{MAXVALUE}."
      end

      if key.length + value.length + 1 > MAXBUFFER
        raise StringOverflow,
              "FXSettings key '#{key[0..50]}...'\n" +
              "  and value '#{value[0..50]}...'\n" +
              "  in section [#{section}]\n" +
              "  are #{key.length + value.length + 1} bytes;" +
               " limit is #{MAXBUFFER}."
      end
    end