MCPcopy Create free account
hub / github.com/apache/qpid-proton / error_str

Function error_str

cpp/src/proton_bits.cpp:32–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30namespace proton {
31
32std::string error_str(long code) {
33 switch (code)
34 {
35 case 0: return "ok";
36 case PN_EOS: return "end of data stream";
37 case PN_ERR: return "error";
38 case PN_OVERFLOW: return "overflow";
39 case PN_UNDERFLOW: return "underflow";
40 case PN_STATE_ERR: return "invalid state";
41 case PN_ARG_ERR: return "invalid argument";
42 case PN_TIMEOUT: return "timeout";
43 case PN_INTR: return "interrupt";
44 default: return "unknown error code";
45 }
46}
47
48std::string error_str(pn_error_t* err, long code) {
49 if (err && pn_error_code(err)) {

Callers 3

checkFunction · 0.85
checkMethod · 0.85
checkFunction · 0.85

Calls 2

pn_error_codeFunction · 0.85
pn_error_textFunction · 0.50

Tested by

no test coverage detected