diff options
author | Tomek Mrugalski <tomasz@isc.org> | 2014-10-06 12:43:26 +0200 |
---|---|---|
committer | Tomek Mrugalski <tomasz@isc.org> | 2014-10-06 12:43:26 +0200 |
commit | 1e8d0e93289a219ae60626a75a1c30ed36981d91 (patch) | |
tree | b46c6941abc0f8c469b6ef6958951e36c8176b74 /src/lib/dhcp/pkt.h | |
parent | [3546] Changes after review: (diff) | |
download | kea-1e8d0e93289a219ae60626a75a1c30ed36981d91.tar.xz kea-1e8d0e93289a219ae60626a75a1c30ed36981d91.zip |
[3546] Pkt6::unpack now handles problems with exceptions, not return false
Diffstat (limited to 'src/lib/dhcp/pkt.h')
-rw-r--r-- | src/lib/dhcp/pkt.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/lib/dhcp/pkt.h b/src/lib/dhcp/pkt.h index 92d88e384e..e0aeceb2e2 100644 --- a/src/lib/dhcp/pkt.h +++ b/src/lib/dhcp/pkt.h @@ -152,13 +152,8 @@ public: /// /// Method will throw exception if packet parsing fails. /// - /// @todo Pkt4 throws exceptions when unpacking fails, while Pkt6 - /// catches exceptions and returns false. We need to unify that - /// behavior one day (most likely using exceptions and turning - /// return type to void). - /// - /// @return true if unpack was successful - virtual bool unpack() = 0; + /// @throw tbd + virtual void unpack() = 0; /// @brief Returns reference to output buffer. /// |