Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
396d1867
Commit
396d1867
authored
Oct 19, 2012
by
Michal 'vorner' Vaner
Browse files
[2207] Exceptions & asserts
Changed an exception for unexpected problem and removed a comment about assert.
parent
c1e16071
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/datasrc/memory/zone_writer_local.cc
View file @
396d1867
...
...
@@ -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
(),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment