6#include <userver/utils/traceful_exception.hpp>
10namespace storages::mongo {
17 explicit MongoException(std::string_view what);
28 struct ByDeadlinePropagation
final {};
32 explicit CancelledException(ByDeadlinePropagation);
34 bool IsByDeadlinePropagation()
const;
37 bool by_deadline_propagation_{
false};
58 TransactionException(
Type type, std::string_view what);
60 Type GetType()
const noexcept {
return type_; }
105 explicit ServerException(
int code)
109 int Code()
const {
return code_; }