From 8e444296d27ef84e9a0d5f6b78a022996ae49f4a Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Fri, 23 Mar 2012 16:06:06 +0000
Subject: Forgotten file for TLSError patch


diff --git a/Swiften/TLS/TLSError.h b/Swiften/TLS/TLSError.h
new file mode 100644
index 0000000..f9ed8f7
--- /dev/null
+++ b/Swiften/TLS/TLSError.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2012 Kevin Smith
+ * Licensed under the GNU General Public License v3.
+ * See Documentation/Licenses/GPLv3.txt for more information.
+ */
+
+#pragma once
+
+#include <boost/shared_ptr.hpp>
+#include <Swiften/Base/Error.h>
+
+namespace Swift {
+	class TLSError : public Error {
+		public:
+			typedef boost::shared_ptr<TLSError> ref;
+
+			enum Type {
+				UnknownError,
+				CertificateCardRemoved
+			};
+
+			TLSError(Type type = UnknownError) : type(type) {}
+
+			Type getType() const { 
+				return type; 
+			}
+
+		private:
+			Type type;
+	};
+}
-- 
cgit v0.10.2-6-g49f6