OZO 「お象」
Boost.Asio and libpq based asynchronous PostgreSQL unofficial header-only C++17 client library.

Description

Useful error conditions.

Enumerations

enum  ozo::errc::code
 Error conditions of the library. More...
 

Functions

const error_categoryozo::errc::category () noexcept
 Error conditions category. More...
 

Enumeration Type Documentation

◆ code

Error conditions of the library.

This useful error conditions incorporate ozo, libpq and Boost.Asio error codes.

Note
Error condition type_mismatch for custom types may occur in case of database schema update which may lead to custom type oid change. For built-in types it signals about mismatching.
Enumerator
ok 

no error placeholder

connection_error 

connection-related error condition, incorporates ozo, libpq and Boost.Asio connection errors

database_readonly 

database in read-only state - useful to detect attempt of modify data on replica host

introspection_error 

errors related to objects serialization/deserialization

type_mismatch 

result type mismatch, indicates types mismatch between result of query and expected result

protocol_error 

specific protocol-related errors

Function Documentation

◆ category()

const error_category & ozo::errc::category ( )
noexcept

Error conditions category.

Error conditions category object is used to construct error_code.

Returns
const error_category& — reference to the category object

Referenced by ozo::error::category(), and ozo::sqlstate::category().