libepp_nicbr
TransportException.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id: TransportException.H 1086 2010-12-10 13:07:28Z eduardo $ */
7 #ifndef __TRANSPORT_EXCEPTION_H__
8 #define __TRANSPORT_EXCEPTION_H__
9 
10 #include "libepp_nicbr.H"
11 
12 #include "GeneralException.H"
13 
14 LIBEPP_NICBR_NS_BEGIN
15 
18 {
19 public:
22  BIO_DO_CONNECT_ERR = 1000,
23  LOST_CONNECTION = 1001,
24  SSL_NEW_ERR = 1002,
25  SSL_CONNECT_ERR = 1003,
26  SSL_READ_ERR = 1004,
27  SSL_WRITE_ERR = 1005,
28  READ_TIMEOUT = 1006,
29  WRITE_TIMEOUT = 1007,
30  MISSING_TOTAL_LENGTH = 1008,
31  INVALID_TOTAL_LENGTH = 1009,
32  PAYLOAD_INCOMPLETE = 1010,
33  LOAD_CERT_FILE_ERR = 1011,
34  LOAD_KEY_FILE_ERR = 1012,
35  GET_FNCTL_ERR = 1013,
36  SET_NONBLOCKING_ERR = 1014,
37  LOAD_ROOTCA_FILE_ERR = 1015,
38  PEER_CERTIFICATE_CN_ERR = 1016
39  };
40 
42 
47  TransportException(const ExceptionCode &code, const string &msg,
48  const string &low_level_msg = "") :
49  GeneralException(code, msg, low_level_msg) {};
50 
51 private:
52 
53 };
54 
55 LIBEPP_NICBR_NS_END
56 #endif //__TRANSPORT_EXCEPTION_H__
Transport Exception Class.
Definition: TransportException.H:17
Project defines.
General Exception Class.
Definition: GeneralException.H:19
General Exception Class.
TransportException(const ExceptionCode &code, const string &msg, const string &low_level_msg="")
Construtor.
Definition: TransportException.H:47
ExceptionCode
Transport Exception Code.
Definition: TransportException.H:21