EHS Embedded HTTP Server
1.5.0.132
|
This class represents any errors in our WebSockets implementation. More...
#include <wsframe.h>
Public Types | |
enum | { FATAL_ERROR = 0, SOFT_ERROR = 1, PROTOCOL_VIOLATION = 2, PAYLOAD_VIOLATION = 3, INTERNAL_ENDPOINT_ERROR = 4, MESSAGE_TOO_BIG = 5, OUT_OF_MESSAGES = 6 } |
Public Member Functions | |
wserror (const std::string &__arg, int code=wserror::FATAL_ERROR) | |
Constructor. | |
virtual | ~wserror () throw () |
Destructor. | |
virtual const char * | what () const throw () |
Retrieve error message. | |
virtual int | code () const |
Retrieve error code. |
This class represents any errors in our WebSockets implementation.
It is derived from tracing::exception in order to produce backtraces on platforms that have BFD or DWARF available.
wserror | ( | const std::string & | __arg, |
int | code = wserror::FATAL_ERROR |
||
) | [inline, explicit] |
virtual int code | ( | ) | const [inline, virtual] |
Retrieve error code.
Definition at line 102 of file wsframe.h.
Referenced by wsendpoint::AddRxData().
virtual const char* what | ( | ) | const throw () [inline, virtual] |
Retrieve error message.
Definition at line 96 of file wsframe.h.
Referenced by wsendpoint::AddRxData().