EHS Embedded HTTP Server  1.5.0.132
wserror Class Reference

This class represents any errors in our WebSockets implementation. More...

#include <wsframe.h>

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

wserror ( const std::string &  __arg,
int  code = wserror::FATAL_ERROR 
) [inline, explicit]

Constructor.

Parameters:
__argThe textual message for this instance.
codeThe numeric error code for this instance.

Definition at line 88 of file wsframe.h.


Member Function Documentation

virtual int code ( ) const [inline, virtual]

Retrieve error code.

Returns:
the numeric error code of this instance.

Definition at line 102 of file wsframe.h.

Referenced by wsendpoint::AddRxData().

+ Here is the caller graph for this function:

virtual const char* what ( ) const throw () [inline, virtual]

Retrieve error message.

Returns:
the textual message of this instance.

Definition at line 96 of file wsframe.h.

Referenced by wsendpoint::AddRxData().

+ Here is the caller graph for this function:


The documentation for this class was generated from the following file: