Commit 32bd410b authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[3263] Add API doc note that RRset::addRdata() can throw

parent be25b97a
......@@ -382,6 +382,13 @@ public:
/// Still, this version would offer a more intuitive interface and is
/// provided as such.
/// NOTE: Because a new Rdata object is constructed, this method can
/// throw a std::bad_cast exception if this RRset's class is NONE,
/// or if some other error occurs. If you want to be able to add
/// RDATA to an RRset whose class is NONE, please use the other
/// variant of \c addRdata() which accepts a \c ConstRdataPtr
/// argument.
/// \param rdata A reference to a \c rdata::RdataPtr (derived) class
/// object, a copy of which is to be added to the \c RRset.
virtual void addRdata(const rdata::Rdata& rdata) = 0;
Markdown is supported
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