userver: storages::mongo::DuplicateKeyException Class Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
storages::mongo::DuplicateKeyException Class Reference

Duplicate key error. More...

#include <userver/storages/mongo/exception.hpp>

+ Inheritance diagram for storages::mongo::DuplicateKeyException:
+ Collaboration diagram for storages::mongo::DuplicateKeyException:

Public Member Functions

 ServerException (int code)
 
- Public Member Functions inherited from storages::mongo::ServerException
 ServerException (int code)
 
int Code () const
 
- Public Member Functions inherited from storages::mongo::QueryException
 MongoException ()
 
 MongoException (std::string_view what)
 
- Public Member Functions inherited from storages::mongo::MongoException
 MongoException (std::string_view what)
 
- Public Member Functions inherited from utils::TracefulException
const charwhat () const noexcept override
 
 TracefulExceptionBase ()
 
 TracefulExceptionBase (std::string_view what)
 
 TracefulExceptionBase (TraceMode trace_mode)
 
 TracefulExceptionBase (TracefulExceptionBase &&) noexcept
 
- Public Member Functions inherited from utils::TracefulExceptionBase
 TracefulExceptionBase (std::string_view what)
 
 TracefulExceptionBase (TraceMode trace_mode)
 
 TracefulExceptionBase (TracefulExceptionBase &&) noexcept
 
const MemoryBuffer & MessageBuffer () const noexcept
 
const boost::stacktrace::basic_stacktrace & Trace () const noexcept
 

Additional Inherited Members

- Public Types inherited from utils::TracefulExceptionBase
enum class  TraceMode {
  kAlways ,
  kIfLoggingIsEnabled
}
 
using MemoryBuffer = fmt::basic_memory_buffer< char, kInlineBufferSize >
 
- Static Public Attributes inherited from utils::TracefulExceptionBase
static constexpr size_t kInlineBufferSize = 100
 

Detailed Description

Duplicate key error.

Definition at line 104 of file exception.hpp.

Member Function Documentation

◆ ServerException()

storages::mongo::ServerException::ServerException ( int  code)
inlineexplicit

Definition at line 89 of file exception.hpp.


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