From 34ade3188a96ee51c8dc895ac087d80480536968 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Mon, 27 Mar 2017 21:28:01 +0200 Subject: Use separate exception for wrong receiving packet's CRC Signed-off-by: Szczepan Zalega --- include/DeviceCommunicationExceptions.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/DeviceCommunicationExceptions.h') diff --git a/include/DeviceCommunicationExceptions.h b/include/DeviceCommunicationExceptions.h index 6d21561..2913975 100644 --- a/include/DeviceCommunicationExceptions.h +++ b/include/DeviceCommunicationExceptions.h @@ -36,5 +36,10 @@ public: DeviceReceivingFailure(std::string msg) : DeviceCommunicationException(msg){} }; +class InvalidCRCReceived: public DeviceReceivingFailure { +public: + InvalidCRCReceived(std::string msg) : DeviceReceivingFailure(msg){} +}; + #endif //LIBNITROKEY_DEVICECOMMUNICATIONEXCEPTIONS_H -- cgit v1.2.1