blob: d81cc0e23c03928ceb287893a03945792c2d55c2 (
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
33
|
#ifndef SWIFTEN_ClientError_H
#define SWIFTEN_ClientError_H
namespace Swift {
class ClientError {
public:
enum Type {
NoError,
DomainNameResolveError,
ConnectionError,
ConnectionReadError,
ConnectionWriteError,
XMLError,
AuthenticationFailedError,
NoSupportedAuthMechanismsError,
UnexpectedElementError,
ResourceBindError,
SessionStartError,
TLSError,
ClientCertificateLoadError,
ClientCertificateError
};
ClientError(Type type = NoError) : type_(type) {}
Type getType() const { return type_; }
private:
Type type_;
};
}
#endif
|