![]() |
Vault
4.1
|
VSocketClosedException is a VException that indicates that a read or write on a socket has failed because the socket has closed. More...
#include <vexception.h>
Public Member Functions | |
| VSocketClosedException (int error, const VString &errorString) | |
| Constructs the exception with default error code and VString message. | |
| VSocketClosedException (const VSystemError &error, const VString &errorString) | |
| Constructs the exception with default error code and VString message. | |
| virtual | ~VSocketClosedException () throw () |
| Destructor. | |
VSocketClosedException is a VException that indicates that a read or write on a socket has failed because the socket has closed.
The reason for separating this from a VException or VEOFException is so that the catch block can distinguish between abnormal conditions (those exceptions) and a simple socket closure (this exception). An example is VMessageInputThread and VMessageOutputThread, which log a VSocketClosedException at a very high level, since it doesn't really indicate an "error" per se, but rather just a condition requiring the VSocket to be cleaned up and the thread to finish.
Definition at line 389 of file vexception.h.
| VSocketClosedException::VSocketClosedException | ( | int | error, |
| const VString & | errorString | ||
| ) | [inline] |
Constructs the exception with default error code and VString message.
| error | the error code |
| errorString | the error message |
Definition at line 397 of file vexception.h.
| VSocketClosedException::VSocketClosedException | ( | const VSystemError & | error, |
| const VString & | errorString | ||
| ) | [inline] |
Constructs the exception with default error code and VString message.
| error | the error construct |
| errorString | the error message |
Definition at line 403 of file vexception.h.