• Main Page
  • Classes
  • Files
  • File List

Swiften/Client/ClientError.h

00001 /*
00002  * Copyright (c) 2010 Remko Tronçon
00003  * Licensed under the GNU General Public License v3.
00004  * See Documentation/Licenses/GPLv3.txt for more information.
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         // Certifate on smartcard was removed
00032         CertificateCardRemoved,
00033 
00034         // Certificate verification errors
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 }

Generated on Fri Oct 12 2012 21:00:19 for Swiften by  doxygen 1.7.1