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

Description

OZO related errors.

Enumerations

enum  ozo::error::code
 OZO related error codes. More...
 

Functions

const error_categoryozo::error::category () noexcept
 OZO related errors category. More...
 

Enumeration Type Documentation

◆ code

OZO related error codes.

Enumeration of error codes provided by the OZO library. Mainly it contains errors related to underlying libpq functions errors, data reflection and so on. In most cases the additional context may be acquired with error_message() and get_error_context() functions.

Enumerator
ok 

a place holder to do not use error code 0

pq_connection_start_failed 

libpq PQConnectionStart function failed

pq_socket_failed 

libpq PQSocket returned -1 as fd

pq_connection_status_bad 

libpq PQstatus returned CONNECTION_BAD

pq_connect_poll_failed 

libpq PQconnectPoll function failed

oid_type_mismatch 

no conversion possible from oid to user-supplied type - the type what user expected is not the same as one which is received from a database

unexpected_eof 

unexpected EOF while data read - something wrong with incoming data from database, data ends unexpectedly

pg_send_query_params_failed 

libpq PQsendQueryParams function failed

pg_consume_input_failed 

libpq PQconsumeInput function failed

pg_set_nonblocking_failed 

libpq PQsetnonblocking function failed

pg_flush_failed 

libpq PQflush function failed

bad_result_process 

error while processing or converting result from the database

no_sql_state_found 

no sql state has been found in database query execution error reply

result_status_unexpected 

got unexpected status from query result

result_status_empty_query 

the string sent to the server was empty

result_status_bad_response 

the server's response was not understood

oid_request_failed 

error during request oids from a database

bad_object_size 

an object size received does not equal to the expected

bad_array_size 

an array size received does not equal to the expected or not supported by the type

bad_array_dimension 

an array dimension count received does not equal to the expected or not supported by the type

bad_composite_size 

a composite's fields number received does not equal to the expected or not supported by the type

pq_cancel_failed 

libpq PQcancel function call failed, see get_error_context() for more information

pq_get_cancel_failed 

libpq PQgetCancel function call failed, see get_error_context() for more information

Function Documentation

◆ category()

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

OZO related errors category.

OZO related errors category object is used to construct error_code.

Returns
const error_category& — reference to the category object

References ozo::errc::category().