boost_sqlite 1
A sqlite C++ library
Loading...
Searching...
No Matches
boost::sqlite::error_info Struct Reference

Additional information about error conditions stored in an sqlite-allocate string. More...

#include <include/boost/sqlite/error.hpp>

Public Member Functions

 error_info ()=default
 Default constructor.
 
 error_info (core::string_view msg) noexcept
 Initialization constructor.
 
std::size_t capacity () const
 Get the allocated memory.
 
void clear () noexcept
 Restores the object to its initial state.
 
cstring_ref format (cstring_ref fmt,...)
 use sqlite_mprintf to generate a message
 
cstring_ref message () const noexcept
 Gets the error message.
 
void reserve (std::size_t sz)
 reserve data in the buffer i.e. allocate
 
void reset (char *c=nullptr)
 transfer ownership into the message
 
void set_message (core::string_view msg)
 set the message by copy
 
cstring_ref snformat (cstring_ref fmt,...)
 use sqlite_snprintf to generate a message
 

Detailed Description

Additional information about error conditions stored in an sqlite-allocate string.

Contains an error message describing what happened. Not all error conditions are able to generate this extended information - those that can't have an empty error message.

Definition at line 32 of file error.hpp.


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