aboutsummaryrefslogtreecommitdiffstats
path: root/src/exception.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/exception.hpp')
-rw-r--r--src/exception.hpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/exception.hpp b/src/exception.hpp
index b7880d31..815fd1d4 100644
--- a/src/exception.hpp
+++ b/src/exception.hpp
@@ -45,6 +45,8 @@ public:
};
+/** List of all VMime exceptions. */
+
namespace exceptions
{
@@ -95,6 +97,33 @@ public:
};
+class no_such_part : public vmime::exception
+{
+public:
+
+ no_such_part() : exception("Part not found.") {}
+ ~no_such_part() throw() {}
+};
+
+
+class no_such_mailbox : public vmime::exception
+{
+public:
+
+ no_such_mailbox() : exception("Mailbox not found.") {}
+ ~no_such_mailbox() throw() {}
+};
+
+
+class no_such_address : public vmime::exception
+{
+public:
+
+ no_such_address() : exception("Address not found.") {}
+ ~no_such_address() throw() {}
+};
+
+
class open_file_error : public vmime::exception
{
public: