Parcourir la source

[2565] Throw InternalException instead of isc::BadValue

Mukund Sivaraman il y a 12 ans
Parent
commit
514b87c307
1 fichiers modifiés avec 1 ajouts et 3 suppressions
  1. 1 3
      src/lib/dns/master_loader.cc

+ 1 - 3
src/lib/dns/master_loader.cc

@@ -214,9 +214,7 @@ private:
             RRClass::createFromText(rrparam_token.getString());
         if (rrclass) {
             if (*rrclass != zone_class_) {
-                // It doesn't really matter much what type of exception
-                // we throw, we catch it just below.
-                isc_throw(isc::BadValue, "Class mismatch: " << rrclass <<
+                isc_throw(InternalException, "Class mismatch: " << rrclass <<
                           "vs. " << zone_class_);
             }
             rrparam_token = lexer_.getNextToken(MasterToken::STRING);