MongoDB  2.6.0
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Attributes | List of all members
mongo::DBException Class Reference

Most mongo exceptions inherit from this; this is commonly caught in most threads. More...

#include <assert_util.h>

Inheritance diagram for mongo::DBException:
mongo::AssertionException mongo::ClockSkewException mongo::SocketException mongo::MsgAssertionException mongo::UserException mongo::ConnectException mongo::UpdateNotTheSame

Public Member Functions

 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
 
virtual std::string toString () const
 
const ExceptionInfogetInfo () const
 

Static Public Member Functions

static ErrorCodes::Error convertExceptionCode (int exCode)
 

Public Attributes

std::string _shard
 

Static Public Attributes

static bool traceExceptions = false
 

Protected Attributes

ExceptionInfo _ei
 

Detailed Description

Most mongo exceptions inherit from this; this is commonly caught in most threads.


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