knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
MongoException.h
Go to the documentation of this file.
1
#ifndef KNOWROB_MONGO_EXCEPTION_H
2
#define KNOWROB_MONGO_EXCEPTION_H
3
4
#include <mongoc.h>
5
#include <knowrob/storage/StorageError.h>
6
7
namespace
knowrob::mongo
{
11
class
MongoException :
public
StorageError {
12
public
:
13
MongoException
(
const
char
*msg,
const
bson_error_t &err)
14
:
StorageError
(
"[mongo] {}: {}."
, msg, err.message),
15
bsonMessage_
(err.message),
16
contextMessage_
(msg) {}
17
const
std::string
bsonMessage_
;
18
const
std::string
contextMessage_
;
19
};
20
}
21
22
#endif
//KNOWROB_MONGO_EXCEPTION_H
knowrob::StorageError
Definition:
StorageError.h:16
knowrob::mongo::MongoException::bsonMessage_
const std::string bsonMessage_
Definition:
MongoException.h:17
knowrob::mongo::MongoException::contextMessage_
const std::string contextMessage_
Definition:
MongoException.h:18
knowrob::mongo::MongoException::MongoException
MongoException(const char *msg, const bson_error_t &err)
Definition:
MongoException.h:13
knowrob::mongo
Definition:
BindingsCursor.h:12
knowrob::parsers::terms::string
TermRule & string()
Definition:
terms.cpp:63
include
knowrob
storage
mongo
MongoException.h
Generated by
1.9.1