summaryrefslogtreecommitdiff
path: root/src/BLEExceptions.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/BLEExceptions.h')
-rw-r--r--src/BLEExceptions.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/BLEExceptions.h b/src/BLEExceptions.h
deleted file mode 100644
index ea9db85..0000000
--- a/src/BLEExceptions.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * BLExceptions.h
- *
- * Created on: Nov 27, 2017
- * Author: kolban
- */
-
-#ifndef COMPONENTS_CPP_UTILS_BLEEXCEPTIONS_H_
-#define COMPONENTS_CPP_UTILS_BLEEXCEPTIONS_H_
-#include "sdkconfig.h"
-
-#if CONFIG_CXX_EXCEPTIONS != 1
-#error "C++ exception handling must be enabled within make menuconfig. See Compiler Options > Enable C++ Exceptions."
-#endif
-
-#include <exception>
-
-
-class BLEDisconnectedException : public std::exception {
- const char* what() const throw () {
- return "BLE Disconnected";
- }
-};
-
-class BLEUuidNotFoundException : public std::exception {
- const char* what() const throw () {
- return "No such UUID";
- }
-};
-
-#endif /* COMPONENTS_CPP_UTILS_BLEEXCEPTIONS_H_ */