ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
Loading...
Searching...
No Matches
kcmcp::ProtocolError Struct Reference

Thrown by Connection on a protocol violation that warrants an ERROR frame (e.g. More...

#include "kcmcp_protocol.h"

Inheritance diagram for kcmcp::ProtocolError:
Collaboration diagram for kcmcp::ProtocolError:

Public Member Functions

 ProtocolError (ErrorCode c, const std::string &what, bool fatal_=true)

Public Attributes

ErrorCode code
bool fatal

Detailed Description

Thrown by Connection on a protocol violation that warrants an ERROR frame (e.g.

an oversize incoming frame); code is the KCMCP error code. fatal is false when the stream stayed synchronised (the offending message was fully consumed), so the caller may answer with an ERROR and keep serving the connection; true when the stream is desynchronised and the connection must be closed.

Definition at line 73 of file kcmcp_protocol.h.

Constructor & Destructor Documentation

◆ ProtocolError()

kcmcp::ProtocolError::ProtocolError ( ErrorCode c,
const std::string & what,
bool fatal_ = true )
inline

Definition at line 76 of file kcmcp_protocol.h.

Member Data Documentation

◆ code

ErrorCode kcmcp::ProtocolError::code

Definition at line 74 of file kcmcp_protocol.h.

◆ fatal

bool kcmcp::ProtocolError::fatal

Definition at line 75 of file kcmcp_protocol.h.


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