1 #ifndef PROTON_ERROR_CONDITION_H
2 #define PROTON_ERROR_CONDITION_H
25 #include "./internal/export.hpp"
34 struct pn_condition_t;
69 PN_CPP_EXTERN
explicit operator bool()
const;
75 PN_CPP_EXTERN
bool empty()
const;
78 PN_CPP_EXTERN std::string
name()
const;
87 PN_CPP_EXTERN std::string
what()
const;
91 std::string description_;
100 PN_CPP_EXTERN
bool operator==(
const error_condition& x,
const error_condition& y);
103 PN_CPP_EXTERN std::ostream&
operator<<(std::ostream& o,
const error_condition& err);
107 #endif // PROTON_ERROR_CONDITION_H
std::ostream & operator<<(std::ostream &, const binary &)
Print a binary value.
bool empty() const
No condition has been set.
value properties() const
Extra information for condition.
std::string name() const
Condition name.
std::string description() const
Descriptive string for condition.
A holder for any AMQP value, simple or complex.
Definition: value.hpp:57
error_condition()
Create an empty error condition.
Definition: error_condition.hpp:46
std::string what() const
Simple printable string for condition.
bool operator!() const
No condition set.
A holder for any AMQP value, simple or complex.
Describes an endpoint error state.
Definition: error_condition.hpp:39