Changed an exception for unexpected problem and removed a comment about
assert.
ZoneWriterLocal::~ZoneWriterLocal() {
// Clean up everything there might be left if someone forgot, just
- // in case. Or should we assert instead?
+ // in case.
cleanup();
}
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(),