mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-02 11:37:50 +00:00
Replaced termination callback with throwing exception
This commit is contained in:
@@ -42,6 +42,10 @@ namespace cppkafka {
|
||||
*/
|
||||
class CPPKAFKA_API Error {
|
||||
public:
|
||||
/**
|
||||
* @brief Constructs an error object with RD_KAFKA_RESP_ERR_NO_ERROR
|
||||
*/
|
||||
Error() = default;
|
||||
/**
|
||||
* Constructs an error object
|
||||
*/
|
||||
@@ -77,7 +81,7 @@ public:
|
||||
*/
|
||||
CPPKAFKA_API friend std::ostream& operator<<(std::ostream& output, const Error& rhs);
|
||||
private:
|
||||
rd_kafka_resp_err_t error_;
|
||||
rd_kafka_resp_err_t error_{RD_KAFKA_RESP_ERR_NO_ERROR};
|
||||
};
|
||||
|
||||
} // cppkafka
|
||||
|
||||
Reference in New Issue
Block a user