userver: formats::bson::OutOfBoundsException Class Reference
Loading...
Searching...
No Matches
formats::bson::OutOfBoundsException Class Reference

#include <userver/formats/bson/exception.hpp>

Detailed Description

BSON array indexing error.

Definition at line 52 of file exception.hpp.

+ Inheritance diagram for formats::bson::OutOfBoundsException:

Public Types

enum class  TraceMode {
  kAlways ,
  kIfLoggingIsEnabled
}
 
using MemoryBuffer = fmt::basic_memory_buffer<char, kInlineBufferSize>
 

Public Member Functions

 OutOfBoundsException (size_t index, size_t size, std::string_view path)
 
std::string_view GetPath () const noexcept
 
std::string_view GetMessageWithoutPath () const noexcept
 
std::string_view GetMessage () const noexcept
 
const char * what () const noexcept override
 
 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
 

Static Public Attributes

static constexpr size_t kInlineBufferSize = 100
 

Member Typedef Documentation

◆ MemoryBuffer

using utils::TracefulExceptionBase::MemoryBuffer = fmt::basic_memory_buffer<char, kInlineBufferSize>
inherited

Definition at line 31 of file traceful_exception.hpp.

Member Enumeration Documentation

◆ TraceMode

enum class utils::TracefulExceptionBase::TraceMode
stronginherited

Definition at line 25 of file traceful_exception.hpp.

Member Function Documentation

◆ GetMessage()

std::string_view formats::bson::BsonException::GetMessage ( ) const
inlinenoexceptinherited

Definition at line 21 of file exception.hpp.

Member Data Documentation

◆ kInlineBufferSize

constexpr size_t utils::TracefulExceptionBase::kInlineBufferSize = 100
staticconstexprinherited

Definition at line 30 of file traceful_exception.hpp.


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