summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Client/ClientError.h')
-rw-r--r--Swiften/Client/ClientError.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/Swiften/Client/ClientError.h b/Swiften/Client/ClientError.h
index 5277a0e..19de42b 100644
--- a/Swiften/Client/ClientError.h
+++ b/Swiften/Client/ClientError.h
@@ -1,11 +1,14 @@
1/* 1/*
2 * Copyright (c) 2010 Isode Limited. 2 * Copyright (c) 2010-2015 Isode Limited.
3 * All rights reserved. 3 * All rights reserved.
4 * See the COPYING file for more information. 4 * See the COPYING file for more information.
5 */ 5 */
6 6
7#pragma once 7#pragma once
8 8
9#include <boost/shared_ptr.hpp>
10#include <boost/system/system_error.hpp>
11
9namespace Swift { 12namespace Swift {
10 class ClientError { 13 class ClientError {
11 public: 14 public:
@@ -51,7 +54,12 @@ namespace Swift {
51 54
52 Type getType() const { return type_; } 55 Type getType() const { return type_; }
53 56
57 void setErrorCode(boost::shared_ptr<boost::system::error_code> errorCode) { errorCode_ = errorCode; }
58
59 boost::shared_ptr<boost::system::error_code> getErrorCode() const { return errorCode_; }
60
54 private: 61 private:
55 Type type_; 62 Type type_;
63 boost::shared_ptr<boost::system::error_code> errorCode_;
56 }; 64 };
57} 65}