Commit d06ff546 authored by Paul Selkirk's avatar Paul Selkirk
Browse files

[2521] doc cleanup for OPT, per Jinmei's review

parent 858d5fac
......@@ -20,7 +20,6 @@
#include <dns/messagerenderer.h>
#include <dns/rdata.h>
#include <dns/rdataclass.h>
#include <dns/rdata/generic/detail/lexer_util.h>
using namespace std;
using namespace isc::util;
......@@ -30,6 +29,8 @@ using namespace isc::util;
/// \brief Constructor from string.
///
/// This constructor cannot be used, and always throws an exception.
///
/// \throw InvalidRdataText OPT RR cannot be constructed from text.
OPT::OPT(const std::string&) {
isc_throw(InvalidRdataText, "OPT RR cannot be constructed from text");
......@@ -37,6 +38,8 @@ OPT::OPT(const std::string&) {
/// \brief Constructor with a context of MasterLexer.
///
/// This constructor cannot be used, and always throws an exception.
///
/// \throw InvalidRdataText OPT RR cannot be constructed from text.
OPT::OPT(MasterLexer&, const Name*,
MasterLoader::Options, MasterLoaderCallbacks&)
......@@ -61,6 +64,7 @@ OPT::OPT(const OPT&) : Rdata() {
std::string
OPT::toText() const {
// OPT records do not have a text format.
return ("");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment