boost_sqlite 1
A sqlite C++ library
|
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 | |
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.