Browse 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 12 years ago
parent
commit
9e1942f5ea
1 changed files with 1 additions and 1 deletions
  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_);
     }