MongoDB  2.7.0
Public Types | Public Member Functions | Public Attributes | List of all members
mongo::SocketException Class Reference

thrown by Socket and SockAddr More...

#include <sock.h>

Inheritance diagram for mongo::SocketException:
mongo::DBException

Public Types

enum  Type {
  CLOSED, RECV_ERROR, SEND_ERROR, RECV_TIMEOUT,
  SEND_TIMEOUT, FAILED_STATE, CONNECT_ERROR
}
 

Public Member Functions

 SocketException (Type t, const std::string &server, int code=9001, const std::string &extra="")
 
bool shouldPrint () const
 
virtual std::string toString () const
 
virtual const std::string * server () const
 
- Public Member Functions inherited from mongo::DBException
 DBException (const ExceptionInfo &ei)
 
 DBException (const char *msg, int code)
 
 DBException (const std::string &msg, int code)
 
virtual const char * what () const throw ()
 
virtual int getCode () const
 
virtual void appendPrefix (std::stringstream &ss) const
 
virtual void addContext (const std::string &str)
 
Status toStatus (const std::string &context) const
 
Status toStatus () const
 
const ExceptionInfogetInfo () const
 

Public Attributes

enum mongo::SocketException::Type _type
 
- Public Attributes inherited from mongo::DBException
std::string _shard
 

Additional Inherited Members

- Static Public Member Functions inherited from mongo::DBException
static ErrorCodes::Error convertExceptionCode (int exCode)
 
- Static Public Attributes inherited from mongo::DBException
static bool traceExceptions = false
 
- Protected Attributes inherited from mongo::DBException
ExceptionInfo _ei
 

Detailed Description

thrown by Socket and SockAddr


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