aboutsummaryrefslogtreecommitdiffstats
path: root/vmime/exception.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'vmime/exception.hpp')
-rw-r--r--vmime/exception.hpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/vmime/exception.hpp b/vmime/exception.hpp
index c09e8919..55d4c480 100644
--- a/vmime/exception.hpp
+++ b/vmime/exception.hpp
@@ -359,11 +359,27 @@ public:
typedef net_exception messaging_exception;
+/** Socket error.
+ */
+
+class socket_exception : public net_exception
+{
+public:
+
+ socket_exception(const string& what = "", const exception& other = NO_EXCEPTION);
+ ~socket_exception() throw();
+
+ exception* clone() const;
+ const char* name() const throw();
+
+};
+
+
/** Error while connecting to the server: this may be a DNS resolution error
* or a connection error (for example, time-out while connecting).
*/
-class connection_error : public net_exception
+class connection_error : public socket_exception
{
public: