Browse Source

[2565] Update comment about exception overhead

Mukund Sivaraman 12 years ago
parent
commit
025db8d7a2
1 changed files with 4 additions and 6 deletions
  1. 4 6
      src/lib/dns/rrparamregistry.h

+ 4 - 6
src/lib/dns/rrparamregistry.h

@@ -392,9 +392,8 @@ public:
     /// corresponding number as the type code in \c type_code;
     /// otherwise, it returns false and \c type_code is untouched.
     ///
-    /// We return \c false and avoid simply throwing an exception in the
-    /// case of an error so that the code is performant in some
-    /// situations.
+    /// It returns \c false and avoids throwing an exception in the case
+    /// of an error to avoid the exception overhead in some situations.
     ///
     /// \param type_string The textual representation of the RR type.
     /// \param type_code Returns the RR type code in this argument.
@@ -431,9 +430,8 @@ public:
     /// \c class_code; otherwise, it returns false and \c class_code is
     /// untouched.
     ///
-    /// We return \c false and avoid simply throwing an exception in the
-    /// case of an error so that the code is performant in some
-    /// situations.
+    /// It returns \c false and avoids throwing an exception in the case
+    /// of an error to avoid the exception overhead in some situations.
     ///
     /// \param class_string The textual representation of the RR class.
     /// \param class_code Returns the RR class code in this argument.