mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-10-07 13:36:21 +00:00
an initial cut of the EDNS class (code + tests), mainly for backup.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac311@2794 e5f2f494-b856-4b98-b285-d166d9295462
This commit is contained in:
@@ -103,20 +103,25 @@ private:
|
||||
const std::string what_;
|
||||
};
|
||||
|
||||
///
|
||||
/// \brief A generic exception that is thrown if a parameter given
|
||||
/// to a method would refer to or modify out-of-range data.
|
||||
///
|
||||
class OutOfRange : public Exception {
|
||||
public:
|
||||
OutOfRange(const char* file, size_t line, const char* what) :
|
||||
isc::Exception(file, line, what) {}
|
||||
};
|
||||
|
||||
///
|
||||
/// \brief A generic exception that is thrown if a parameter given
|
||||
/// to a method or function is considered invalid and no other specific
|
||||
/// exceptions are suitable to describe the error.
|
||||
class InvalidParameter : public Exception {
|
||||
public:
|
||||
InvalidParameter(const char* file, size_t line, const char* what) :
|
||||
isc::Exception(file, line, what) {}
|
||||
};
|
||||
|
||||
/// \brief A generic exception that is thrown if a parameter given
|
||||
/// to a method is considered invalid in that context.
|
||||
///
|
||||
class BadValue : public Exception {
|
||||
public:
|
||||
BadValue(const char* file, size_t line, const char* what) :
|
||||
|
Reference in New Issue
Block a user