Add initial config classes

This commit is contained in:
Matias Fontanini
2016-05-12 20:37:58 -07:00
commit f86c9c1f57
8 changed files with 200 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
#ifndef CPPKAFKA_EXCEPTIONS_H
#define CPPKAFKA_EXCEPTIONS_H
#include <stdexcept>
#include <string>
namespace cppkafka {
class KafkaException : public std::exception {
};
class KafkaConfigException : public KafkaException {
public:
KafkaConfigException(const std::string& config_name, const std::string& error);
const char* what() const noexcept;
private:
std::string message_;
};
} // cppkafka
#endif // CPPKAFKA_EXCEPTIONS_H