Qpid Proton C++ API
0.33.0
|
|
Go to the documentation of this file. 1 #ifndef PROTON_ERROR_CONDITION_H
2 #define PROTON_ERROR_CONDITION_H
25 #include "./internal/export.hpp"
26 #include "./internal/config.hpp"
35 struct pn_condition_t;
60 #if PN_CPP_HAS_DEFAULTED_FUNCTIONS && PN_CPP_HAS_DEFAULTED_MOVE_INITIALIZERS
69 #if PN_CPP_HAS_EXPLICIT_CONVERSIONS
70 PN_CPP_EXTERN
explicit operator bool()
const;
80 PN_CPP_EXTERN
bool empty()
const;
83 PN_CPP_EXTERN std::string
name()
const;
92 PN_CPP_EXTERN std::string
what()
const;
96 std::string description_;
112 #endif // PROTON_ERROR_CONDITION_H
Describes an endpoint error state.
Definition: error_condition.hpp:40
bool empty() const
No condition has been set.
bool operator!() const
No condition set.
A holder for any AMQP value, simple or complex.
Definition: value.hpp:57
error_condition()
Create an empty error condition.
Definition: error_condition.hpp:47
error_condition(std::string name, std::string description, proton::value properties)
Unsettled API - Create an error condition with name, description, and informational properties.
std::string what() const
Simple printable string for condition.
std::ostream & operator<<(std::ostream &, const binary &)
Print a binary value.
error_condition(std::string description)
Create an error condition with only a description.
bool operator==(const error_condition &x, const error_condition &y)
A holder for any AMQP value, simple or complex.
The main Proton namespace.
Definition: annotation_key.hpp:33
std::string description() const
Descriptive string for condition.
value properties() const
Extra information for condition.
error_condition(std::string name, std::string description)
Create an error condition with a name and description.
std::string name() const
Condition name.