Parcourir la source

[2421] Throw AddError instead of OutOfZone when loading out-of-zone data

OutOfZone is used in the ZoneFinder for other class of errors
and we can't really bring it into the ZoneValidationException
hierarchy.
Mukund Sivaraman il y a 12 ans
Parent
commit
9e1942f5ea
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/lib/datasrc/memory/zone_data_updater.cc

+ 1 - 1
src/lib/datasrc/memory/zone_data_updater.cc

@@ -158,7 +158,7 @@ ZoneDataUpdater::validate(const isc::dns::ConstRRsetPtr rrset) const {
         LOG_ERROR(logger,
                   DATASRC_MEMORY_MEM_OUT_OF_ZONE).arg(rrset->getName()).
             arg(zone_name_);
-        isc_throw(OutOfZone,
+        isc_throw(AddError,
                   "The name " << rrset->getName() <<
                   " is not contained in zone " << zone_name_);
     }