aboutsummaryrefslogtreecommitdiff
path: root/exceptions.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'exceptions.hpp')
-rw-r--r--exceptions.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/exceptions.hpp b/exceptions.hpp
new file mode 100644
index 0000000..4821bc9
--- /dev/null
+++ b/exceptions.hpp
@@ -0,0 +1,14 @@
+#include "vmime/vmime.hpp"
+
+void handle_vmime_exception(vmime::exception *e);
+
+void handle_std_exception(std::exception *e);
+
+class silent_exception : public std::runtime_error {
+public:
+ silent_exception() : std::runtime_error("")
+ {
+ }
+
+// virtual ~Exception() noexcept {}
+};