From: Michal 'vorner' Vaner Date: Fri, 19 Oct 2012 17:10:39 +0000 (+0200) Subject: [2207] Exceptions & asserts X-Git-Tag: trac2402_base~12^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=396d1867ce3420d759bd5eaaed64ce3f83b0b874;p=thirdparty%2Fkea.git [2207] Exceptions & asserts Changed an exception for unexpected problem and removed a comment about assert. --- diff --git a/src/lib/datasrc/memory/zone_writer_local.cc b/src/lib/datasrc/memory/zone_writer_local.cc index a14cbff1c4..0cd95876c5 100644 --- a/src/lib/datasrc/memory/zone_writer_local.cc +++ b/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(),