00001
00002
00003
00004
00005
00006
00007 #pragma once
00008
00009 namespace Swift {
00010 class ClientError {
00011 public:
00012 enum Type {
00013 UnknownError,
00014 DomainNameResolveError,
00015 ConnectionError,
00016 ConnectionReadError,
00017 ConnectionWriteError,
00018 XMLError,
00019 AuthenticationFailedError,
00020 CompressionFailedError,
00021 ServerVerificationFailedError,
00022 NoSupportedAuthMechanismsError,
00023 UnexpectedElementError,
00024 ResourceBindError,
00025 SessionStartError,
00026 StreamError,
00027 TLSError,
00028 ClientCertificateLoadError,
00029 ClientCertificateError,
00030
00031
00032 CertificateCardRemoved,
00033
00034
00035 UnknownCertificateError,
00036 CertificateExpiredError,
00037 CertificateNotYetValidError,
00038 CertificateSelfSignedError,
00039 CertificateRejectedError,
00040 CertificateUntrustedError,
00041 InvalidCertificatePurposeError,
00042 CertificatePathLengthExceededError,
00043 InvalidCertificateSignatureError,
00044 InvalidCAError,
00045 InvalidServerIdentityError,
00046 RevokedError,
00047 RevocationCheckFailedError
00048 };
00049
00050 ClientError(Type type = UnknownError) : type_(type) {}
00051
00052 Type getType() const { return type_; }
00053
00054 private:
00055 Type type_;
00056 };
00057 }