| 1 | // -------------------------------------------------------------------------- |
|---|
| 2 | // |
|---|
| 3 | // File |
|---|
| 4 | // Name: ServerException.h |
|---|
| 5 | // Purpose: Exception |
|---|
| 6 | // Created: 2003/07/08 |
|---|
| 7 | // |
|---|
| 8 | // -------------------------------------------------------------------------- |
|---|
| 9 | |
|---|
| 10 | #ifndef SERVEREXCEPTION__H |
|---|
| 11 | #define SERVEREXCEPTION__H |
|---|
| 12 | |
|---|
| 13 | // Compatibility header |
|---|
| 14 | #include "autogen_ServerException.h" |
|---|
| 15 | #include "autogen_ConnectionException.h" |
|---|
| 16 | |
|---|
| 17 | // Rename old connection exception names to new names without Conn_ prefix |
|---|
| 18 | // This is all because ConnectionException used to be derived from ServerException |
|---|
| 19 | // with some funky magic with subtypes. Perhaps a little unreliable, and the |
|---|
| 20 | // usefulness of it never really was used. |
|---|
| 21 | #define Conn_SocketWriteError SocketWriteError |
|---|
| 22 | #define Conn_SocketReadError SocketReadError |
|---|
| 23 | #define Conn_SocketNameLookupError SocketNameLookupError |
|---|
| 24 | #define Conn_SocketShutdownError SocketShutdownError |
|---|
| 25 | #define Conn_SocketConnectError SocketConnectError |
|---|
| 26 | #define Conn_TLSHandshakeFailed TLSHandshakeFailed |
|---|
| 27 | #define Conn_TLSShutdownFailed TLSShutdownFailed |
|---|
| 28 | #define Conn_TLSWriteFailed TLSWriteFailed |
|---|
| 29 | #define Conn_TLSReadFailed TLSReadFailed |
|---|
| 30 | #define Conn_TLSNoPeerCertificate TLSNoPeerCertificate |
|---|
| 31 | #define Conn_TLSPeerCertificateInvalid TLSPeerCertificateInvalid |
|---|
| 32 | #define Conn_TLSClosedWhenWriting TLSClosedWhenWriting |
|---|
| 33 | #define Conn_TLSHandshakeTimedOut TLSHandshakeTimedOut |
|---|
| 34 | #define Conn_Protocol_Timeout Protocol_Timeout |
|---|
| 35 | #define Conn_Protocol_ObjTooBig Protocol_ObjTooBig |
|---|
| 36 | #define Conn_Protocol_BadCommandRecieved Protocol_BadCommandRecieved |
|---|
| 37 | #define Conn_Protocol_UnknownCommandRecieved Protocol_UnknownCommandRecieved |
|---|
| 38 | #define Conn_Protocol_TriedToExecuteReplyCommand Protocol_TriedToExecuteReplyCommand |
|---|
| 39 | #define Conn_Protocol_UnexpectedReply Protocol_UnexpectedReply |
|---|
| 40 | #define Conn_Protocol_HandshakeFailed Protocol_HandshakeFailed |
|---|
| 41 | #define Conn_Protocol_StreamWhenObjExpected Protocol_StreamWhenObjExpected |
|---|
| 42 | #define Conn_Protocol_ObjWhenStreamExpected Protocol_ObjWhenStreamExpected |
|---|
| 43 | #define Conn_Protocol_TimeOutWhenSendingStream Protocol_TimeOutWhenSendingStream |
|---|
| 44 | |
|---|
| 45 | #endif // SERVEREXCEPTION__H |
|---|
| 46 | |
|---|