Vault  4.1
Public Member Functions
VSocketClosedException Class Reference

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>

Inheritance diagram for VSocketClosedException:
VException

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

VSocketClosedException::VSocketClosedException ( int  error,
const VString errorString 
) [inline]

Constructs the exception with default error code and VString message.

Parameters:
errorthe error code
errorStringthe 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.

Parameters:
errorthe error construct
errorStringthe error message

Definition at line 403 of file vexception.h.


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

Copyright ©1997-2014 Trygve Isaacson. All rights reserved. This documentation was generated with Doxygen.