MySQL 26.7.0
Source Code Documentation
ib::redo::Parse_error Class Reference

Parse error description. More...

#include <log0redo.h>

Public Member Functions

constexpr size_t pos () const noexcept
 Returns position in parsing buffer where the error occurred. More...
 
auto & with_pos (size_t pos)
 Add position to error description. More...
 
constexpr Parse_error (int code) noexcept
 
constexpr operator int () const noexcept
 

Static Public Attributes

static constexpr int Incomplete = 1
 Buffer is too short to parse. More...
 
static constexpr int Corrupted = 2
 Buffer contains corrupted data. More...
 

Private Attributes

int m_code
 
size_t m_pos = 0
 

Detailed Description

Parse error description.

Constructor & Destructor Documentation

◆ Parse_error()

constexpr ib::redo::Parse_error::Parse_error ( int  code)
inlineconstexprnoexcept

Member Function Documentation

◆ operator int()

constexpr ib::redo::Parse_error::operator int ( ) const
inlineconstexprnoexcept

◆ pos()

constexpr size_t ib::redo::Parse_error::pos ( ) const
inlineconstexprnoexcept

Returns position in parsing buffer where the error occurred.

The position is aligned to the record boundary.

◆ with_pos()

auto & ib::redo::Parse_error::with_pos ( size_t  pos)
inline

Add position to error description.

Parameters
poserror position
Returns
Reference to self.

Member Data Documentation

◆ Corrupted

constexpr int ib::redo::Parse_error::Corrupted = 2
staticconstexpr

Buffer contains corrupted data.

◆ Incomplete

constexpr int ib::redo::Parse_error::Incomplete = 1
staticconstexpr

Buffer is too short to parse.

◆ m_code

int ib::redo::Parse_error::m_code
private

◆ m_pos

size_t ib::redo::Parse_error::m_pos = 0
private

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