Most mongo exceptions inherit from this; this is commonly caught in most threads.
More...
#include <assert_util.h>
|
|
| 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 ExceptionInfo & | getInfo () const |
| |
|
|
static ErrorCodes::Error | convertExceptionCode (int exCode) |
| |
|
|
static bool | traceExceptions = false |
| |
Most mongo exceptions inherit from this; this is commonly caught in most threads.
The documentation for this class was generated from the following files: