summaryrefslogtreecommitdiff
path: root/include/DeviceCommunicationExceptions.h
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-03-27 21:28:01 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2017-03-27 21:28:01 +0200
commit34ade3188a96ee51c8dc895ac087d80480536968 (patch)
treed6bdd4ff814b666c7ebb93ad3c3baad1daedd968 /include/DeviceCommunicationExceptions.h
parent04dacd90fb06928cad4b29a99239b7b3b664674b (diff)
downloadlibnitrokey-34ade3188a96ee51c8dc895ac087d80480536968.tar.gz
libnitrokey-34ade3188a96ee51c8dc895ac087d80480536968.tar.bz2
Use separate exception for wrong receiving packet's CRC
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include/DeviceCommunicationExceptions.h')
-rw-r--r--include/DeviceCommunicationExceptions.h5
1 files changed, 5 insertions, 0 deletions
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