Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Adam Osuchowski
Kea
Commits
a8326a6f
Commit
a8326a6f
authored
Nov 27, 2012
by
Michal 'vorner' Vaner
Browse files
[2378] Consider masterfile errors in ZoneLoader docs
parent
c9825a57
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/datasrc/zone_loader.h
View file @
a8326a6f
...
...
@@ -15,6 +15,8 @@
#ifndef DATASRC_ZONE_LOADER_H
#define DATASRC_ZONE_LOADER_H
#include <datasrc/data_source.h>
#include <cstdlib> // For size_t
#include <boost/shared_ptr.hpp>
...
...
@@ -32,6 +34,17 @@ typedef boost::shared_ptr<ZoneIterator> ZoneIteratorPtr;
class
ZoneUpdater
;
typedef
boost
::
shared_ptr
<
ZoneUpdater
>
ZoneUpdaterPtr
;
/// \brief Exception thrown when there's a problem with master file.
///
/// This is thrown by the ZoneLoader when there's a fatal problem with
/// a master file being loaded.
class
MasterFileError
:
public
DataSourceError
{
public:
MasterFileError
(
const
char
*
file
,
size_t
line
,
const
char
*
what
)
:
DataSourceError
(
file
,
line
,
what
)
{}
};
/// \brief Class to load data into a data source client.
///
/// This is a small wrapper class that is able to load data into a data source.
...
...
@@ -56,6 +69,8 @@ public:
/// beforehead.
/// \throw DataSourceError in case of other (possibly low-level) errors,
/// such as read-only data source or database error.
/// \throw MasterFileError when the master_file is badly formatted or some
/// similar problem is found when loading the master file.
ZoneLoader
(
DataSourceClient
&
destination
,
const
isc
::
dns
::
Name
&
zone_name
,
const
char
*
master_file
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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