summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Slimber/ServerError.h')
-rw-r--r--Slimber/ServerError.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/Slimber/ServerError.h b/Slimber/ServerError.h
index ec80f0a..93b6a3f 100644
--- a/Slimber/ServerError.h
+++ b/Slimber/ServerError.h
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2010 Remko Tronçon
- * Licensed under the GNU General Public License v3.
- * See Documentation/Licenses/GPLv3.txt for more information.
+ * Copyright (c) 2010 Isode Limited.
+ * All rights reserved.
+ * See the COPYING file for more information.
*/
#pragma once
@@ -9,29 +9,29 @@
#include <string>
namespace Swift {
- class ServerError {
- public:
- enum Type {
- C2SPortConflict,
- C2SError,
- LinkLocalPortConflict,
- LinkLocalError
- };
+ class ServerError {
+ public:
+ enum Type {
+ C2SPortConflict,
+ C2SError,
+ LinkLocalPortConflict,
+ LinkLocalError
+ };
- ServerError(Type type, const std::string& message = std::string()) :
- type(type), message(message) {
- }
+ ServerError(Type type, const std::string& message = std::string()) :
+ type(type), message(message) {
+ }
- Type getType() const {
- return type;
- }
+ Type getType() const {
+ return type;
+ }
- const std::string& getMessage() const {
- return message;
- }
+ const std::string& getMessage() const {
+ return message;
+ }
- private:
- Type type;
- std::string message;
- };
+ private:
+ Type type;
+ std::string message;
+ };
}