Browse Source

[2207] Exceptions & asserts

Changed an exception for unexpected problem and removed a comment about
assert.
Michal 'vorner' Vaner 12 years ago
parent
commit
396d1867ce
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/datasrc/memory/zone_writer_local.cc

+ 2 - 2
src/lib/datasrc/memory/zone_writer_local.cc

@@ -38,7 +38,7 @@ ZoneWriterLocal::ZoneWriterLocal(ZoneTableSegmentLocal* segment,
 
 ZoneWriterLocal::~ZoneWriterLocal() {
     // Clean up everything there might be left if someone forgot, just
-    // in case. Or should we assert instead?
+    // in case.
     cleanup();
 }
 
@@ -67,7 +67,7 @@ ZoneWriterLocal::install() {
 
     ZoneTable* table(segment_->getHeader().getTable());
     if (table == NULL) {
-        isc_throw(isc::InvalidOperation, "No zone table present");
+        isc_throw(isc::Unexpected, "No zone table present");
     }
     const ZoneTable::AddResult result(table->addZone(
                                           segment_->getMemorySegment(),