aboutsummaryrefslogtreecommitdiffstats
path: root/common/alexcpt.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/alexcpt.h')
-rw-r--r--common/alexcpt.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/common/alexcpt.h b/common/alexcpt.h
deleted file mode 100644
index e31c50e7..00000000
--- a/common/alexcpt.h
+++ /dev/null
@@ -1,31 +0,0 @@
-#ifndef ALEXCPT_H
-#define ALEXCPT_H
-
-#include <cstdarg>
-#include <exception>
-#include <string>
-#include <utility>
-
-
-namespace al {
-
-class base_exception : public std::exception {
- std::string mMessage;
-
-protected:
- base_exception() = default;
- virtual ~base_exception();
-
- void setMessage(const char *msg, std::va_list args);
-
-public:
- const char *what() const noexcept override { return mMessage.c_str(); }
-};
-
-} // namespace al
-
-#define START_API_FUNC try
-
-#define END_API_FUNC catch(...) { std::terminate(); }
-
-#endif /* ALEXCPT_H */