From: Francis Dupont Date: Tue, 19 Mar 2024 17:21:54 +0000 (+0100) Subject: [#3211] Removed remaining InvalidBufferPosition X-Git-Tag: Kea-2.5.7~52 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a7e0c79d71e45ff1e1f95cd5c906529d951c61fd;p=thirdparty%2Fkea.git [#3211] Removed remaining InvalidBufferPosition --- diff --git a/src/lib/util/buffer.h b/src/lib/util/buffer.h index 2a6670d380..2a8ac8d2b7 100644 --- a/src/lib/util/buffer.h +++ b/src/lib/util/buffer.h @@ -416,7 +416,7 @@ public: /// @brief Return the value of the buffer at the specified position. /// /// @c pos must specify the valid position of the buffer; - /// otherwise an exception class of @c InvalidBufferPosition will + /// otherwise an exception class of @c isc::OutOfRange will /// be thrown. /// /// @param pos The position in the buffer to be returned. @@ -478,8 +478,8 @@ public: /// @brief Write an unsigned 8-bit integer into the buffer. /// /// The position must be lower than the size of the buffer, - /// otherwise an exception of class @c - /// isc::dns::InvalidBufferPosition will be thrown. + /// otherwise an exception of class @c isc::OutOfRange will + /// be thrown. /// /// @param data The 8-bit integer to be written into the buffer. /// @param pos The position in the buffer to write the data. @@ -505,8 +505,8 @@ public: /// /// The buffer must have a sufficient room to store the given data /// at the given position, that is, pos + 2 < - /// getLength(); otherwise an exception of class @c - /// isc::dns::InvalidBufferPosition will be thrown. + /// getLength(); otherwise an exception of class + /// @c isc::OutOfRange will be thrown. /// Note also that this method never extends the buffer. /// /// @param data The 16-bit integer to be written into the buffer.