From ba4d36c38c0017415129a5674c0f7133e6d76f9d Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Tue, 9 Aug 2016 15:33:26 +0200 Subject: Return error on invalid slot Signed-off-by: Szczepan Zalega --- include/LibraryException.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 include/LibraryException.h (limited to 'include/LibraryException.h') diff --git a/include/LibraryException.h b/include/LibraryException.h new file mode 100644 index 0000000..ef81624 --- /dev/null +++ b/include/LibraryException.h @@ -0,0 +1,17 @@ +// +// Created by sz on 09.08.16. +// + +#ifndef LIBNITROKEY_LIBRARYEXCEPTION_H +#define LIBNITROKEY_LIBRARYEXCEPTION_H + +#include +#include + +class LibraryException: std::exception { +public: + virtual uint8_t exception_id()= 0; +}; + + +#endif //LIBNITROKEY_LIBRARYEXCEPTION_H -- cgit v1.2.1