IBR-DTNSuite  0.8
ibrcommon/ibrcommon/TLSExceptions.h
Go to the documentation of this file.
00001 /*
00002  * TLSExceptions.h
00003  *
00004  *  Created on: Mar 24, 2011
00005  *      Author: roettger
00006  */
00007 
00008 #ifndef TLSEXCEPTIONS_H_
00009 #define TLSEXCEPTIONS_H_
00010 
00011 #include "ibrcommon/Exceptions.h"
00012 
00013 namespace ibrcommon
00014 {
00015         class TLSException : public ibrcommon::Exception
00016         {
00017         public:
00018                 TLSException(const std::string &what) throw() : Exception(what)
00019                 {
00020                 }
00021         };
00022 
00023         class ContextCreationException : public TLSException
00024         {
00025         public:
00026                 ContextCreationException(const std::string &what) throw() : TLSException(what)
00027                 {
00028                 };
00029         };
00030 
00031         class SSLCreationException : public TLSException
00032         {
00033         public:
00034                 SSLCreationException(const std::string &what) throw() : TLSException(what)
00035                 {
00036                 };
00037         };
00038 
00039         class BIOCreationException : public TLSException
00040         {
00041         public:
00042                 BIOCreationException(const std::string &what) throw() : TLSException(what)
00043                 {
00044                 };
00045         };
00046 
00047         class TLSHandshakeException : public TLSException
00048         {
00049         public:
00050                 TLSHandshakeException(const std::string &what) throw() : TLSException(what)
00051                 {
00052                 };
00053         };
00054 
00055         class TLSNotInitializedException : public TLSException
00056         {
00057         public:
00058                 TLSNotInitializedException(const std::string &what) throw() : TLSException(what)
00059                 {
00060                 };
00061         };
00062 
00063         class TLSCertificateFileException : public TLSException
00064         {
00065         public:
00066                 TLSCertificateFileException(const std::string &what) throw() : TLSException(what)
00067                 {
00068                 };
00069         };
00070 
00071         class TLSKeyFileException : public TLSException
00072         {
00073         public:
00074                 TLSKeyFileException(const std::string &what) throw() : TLSException(what)
00075                 {
00076                 };
00077         };
00078 
00079         class TLSCertificateVerificationException : public TLSException
00080         {
00081         public:
00082                 TLSCertificateVerificationException(const std::string &what) throw() : TLSException(what)
00083                 {
00084                 };
00085         };
00086 }
00087 
00088 #endif /* TLSEXCEPTIONS_H_ */