summaryrefslogtreecommitdiffstats
blob: 38f20c03456ff09cc37bbc02cf4c8a353e9931cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef SWIFTEN_ClientError_H
#define SWIFTEN_ClientError_H

namespace Swift {
	class ClientError {
		public:
			enum Type {
				NoError,
				DomainNameResolveError,
				ConnectionError,
				ConnectionReadError,
				XMLError,
				AuthenticationFailedError,
				NoSupportedAuthMechanismsError,
				UnexpectedElementError,
				ResourceBindError,
				SessionStartError,
				TLSError,
				ClientCertificateLoadError,
				ClientCertificateError
			};

			ClientError(Type type = NoError) : type_(type) {}

			Type getType() const { return type_; }

		private:
			Type type_;
	};
}

#endif