aboutsummaryrefslogtreecommitdiffstats
path: root/common/alexcpt.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-12-21 18:00:43 -0800
committerChris Robinson <[email protected]>2020-12-24 22:49:55 -0800
commiteedc42890fa1358a6639051a39f7e73f8d4d3b07 (patch)
tree927a986e1004db66cdf58741be908d8fb8eb6134 /common/alexcpt.h
parent63ea62bea1604ad97066809596da258751b48114 (diff)
Move alexcpt to core
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 */