13 #include "baos/BaosLib_export.h"
15 #include "wzcpp/features/error/Exception.h"
17 #ifndef __BAOSLIB_EXCEPTION_H__
18 #define __BAOSLIB_EXCEPTION_H__
44 AddressResolveError = 4,
45 TCPConnectionError = 5,
46 TCPConnectionClosed = 6,
50 SocketRxBufferToSmall = 10,
52 ResponseTimeoutError = 21,
53 MaleformedTelegram = 22,
54 ConnectResponseTimeoutError = 23,
55 GenericSecurityError = 30,
56 AuthenticationFailedError = 31,
57 DeviceAuthenticationCodeInvalidError = 32,
58 UnauthenticatedError = 33,
59 ReceivedSessionKeepAliveError = 34,
60 ClosedSecuritySessionError = 35,
61 ClosedConnection = 51,
62 StoppedConnection = 52
66 ErrorCodes::BaosError,
67 wzcpp::error::WzBaseException);
69 ErrorCodes::SocketError,
72 ErrorCodes::AddressResolveError,
75 ErrorCodes::TCPConnectionError,
78 ErrorCodes::TCPConnectionClosed,
81 ErrorCodes::SocketRecvError,
84 ErrorCodes::SocketSendError,
87 ErrorCodes::SocketInitError,
90 ErrorCodes::SocketRxBufferToSmall,
95 ErrorCodes::MaleformedTelegram,
98 ErrorCodes::ResponseError,
101 ErrorCodes::ResponseTimeoutError,
104 ErrorCodes::ConnectResponseTimeoutError,
107 ErrorCodes::ClosedConnection,
110 WzStoppedConnectionException,
111 ErrorCodes::StoppedConnection,
114 ErrorCodes::GenericSecurityError,
118 ErrorCodes::AuthenticationFailedError,
119 WzGenericSecurityException);
121 ErrorCodes::DeviceAuthenticationCodeInvalidError,
122 WzGenericSecurityException);
124 ErrorCodes::UnauthenticatedError,
125 WzGenericSecurityException);
127 ErrorCodes::ReceivedSessionKeepAliveError,
128 WzGenericSecurityException);
130 ErrorCodes::ClosedSecuritySessionError,
131 WzGenericSecurityException);
Global BAOS sdk namespace.
Definition: config.h:69
ErrorCodes
Custom error codes for each exception.
Definition: Exception.h:41
DECLARE_WZ_EXCEPTION(WzBaosException, ErrorCodes::BaosError, wzcpp::error::WzBaseException)
Generic exception from this SDK.