#include <CTCPBadSocketState.h>
Public Member Functions | |
CTCPBadSocketState (CSocket::State badState, STD(vector)< CSocket::State > okStates, const char *pDoing) | |
CTCPBadSocketState (const CTCPBadSocketState &rhs) | |
virtual | ~CTCPBadSocketState () |
CTCPBadSocketState & | operator= (const CTCPBadSocketState &rhs) |
int | operator== (const CTCPBadSocketState &rhs) |
CSocket::State | getBadState () const |
STD (vector)< CSocket | |
virtual const char * | ReasonText () const |
Protected Member Functions | |
void | setBadState (CSocket::State newState) |
void | setValidStates (const STD(vector)< CSocket::State > &newStates) |
Private Attributes | |
CSocket::State | m_BadState |
Incorrect state at time of throw. | |
STD(vector)< CSocke | STD )(string) m_Message |
Full error message built up here. |
Definition at line 323 of file CTCPBadSocketState.h.
|
|
|
"Copy constructor" This constructor creates a new object from a 'reference' object. This is used by the compiler to create temporaries, it is also used by throw to copy the exception to a "spot" where it cannot go out of scope as it travels up the call stack in search of a handler.
Definition at line 329 of file CTCPBadSocketState.cpp. |
|
Definition at line 337 of file CTCPBadSocketState.h. |
|
Definition at line 345 of file CTCPBadSocketState.h. |
|
Assignement... little different from copy construction however:
Definition at line 347 of file CTCPBadSocketState.cpp. References m_BadState. |
|
Equality comparison. Returns int indicating if for all practical purposes this is the same as the rhs. m_Message is not compared as it is inconsequential.
Definition at line 364 of file CTCPBadSocketState.cpp. References m_BadState. |
|
Build up and return a text string describing why the exception was thrown. This is done from the m_BadState, m_ValidStates, and base class WasDoing() strings. The final string is of the form: "CSocket member called while in state m_BadState, Valid states are m_ValidStates, CSocket was attempting to: WasDoing()" Definition at line 384 of file CTCPBadSocketState.cpp. References m_BadState. |
|
Definition at line 353 of file CTCPBadSocketState.h. References m_BadState. |
|
Definition at line 355 of file CTCPBadSocketState.h. |
|
Definition at line 347 of file CTCPBadSocketState.h. |
|
Incorrect state at time of throw.
Definition at line 327 of file CTCPBadSocketState.h. Referenced by operator=(), operator==(), ReasonText(), and setBadState(). |
|
Full error message built up here.
|