EHS Embedded HTTP Server  1.5.1.173
wserror Class Reference

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

#include <wsframe.h>

+ Inheritance diagram for wserror:
+ Collaboration diagram for wserror:

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. More...
 
virtual ~wserror () throw ()
 Destructor.
 
virtual const char * what () const throw ()
 Retrieve error message. More...
 
virtual int code () const
 Retrieve error code. More...
 

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.

Definition at line 70 of file wsframe.h.

Constructor & Destructor Documentation

◆ wserror()

wserror ( const std::string &  __arg,
int  code = wserror::FATAL_ERROR 
)
inlineexplicit

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

◆ code()

virtual int code ( ) const
inlinevirtual

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:

◆ what()

virtual const char* what ( ) const
throw (
)
inlinevirtual

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: