Add Error class

This commit is contained in:
Matias Fontanini
2016-06-27 21:43:20 -07:00
parent 6cfe01afb1
commit cf6ac1675b
14 changed files with 188 additions and 45 deletions

View File

@@ -40,6 +40,8 @@
namespace cppkafka {
class Error;
/**
* Represents the metadata for a partition
*/
@@ -55,7 +57,7 @@ public:
/**
* Gets the partition error as reported by the broker
*/
rd_kafka_resp_err_t get_error() const;
Error get_error() const;
/**
* Gets the leader broker id
@@ -94,7 +96,7 @@ public:
/**
* Gets the topic error
*/
rd_kafka_resp_err_t get_error() const;
Error get_error() const;
/**
* Gets the partitions' metadata