mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-04 12:37:54 +00:00
Export symbols on Windows dll builds
This commit is contained in:
@@ -33,13 +33,14 @@
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
#include <librdkafka/rdkafka.h>
|
||||
#include "macros.h"
|
||||
|
||||
namespace cppkafka {
|
||||
|
||||
/**
|
||||
* Base class for all cppkafka exceptions
|
||||
*/
|
||||
class Exception : public std::exception {
|
||||
class CPPKAFKA_API Exception : public std::exception {
|
||||
public:
|
||||
Exception(std::string message);
|
||||
|
||||
@@ -51,7 +52,7 @@ private:
|
||||
/**
|
||||
* A configuration related error
|
||||
*/
|
||||
class ConfigException : public Exception {
|
||||
class CPPKAFKA_API ConfigException : public Exception {
|
||||
public:
|
||||
ConfigException(const std::string& config_name, const std::string& error);
|
||||
};
|
||||
@@ -59,7 +60,7 @@ public:
|
||||
/**
|
||||
* Indicates a configuration option was not set
|
||||
*/
|
||||
class ConfigOptionNotFound : public Exception {
|
||||
class CPPKAFKA_API ConfigOptionNotFound : public Exception {
|
||||
public:
|
||||
ConfigOptionNotFound(const std::string& config_name);
|
||||
};
|
||||
@@ -67,7 +68,7 @@ public:
|
||||
/**
|
||||
* A generic rdkafka handle error
|
||||
*/
|
||||
class HandleException : public Exception {
|
||||
class CPPKAFKA_API HandleException : public Exception {
|
||||
public:
|
||||
HandleException(rd_kafka_resp_err_t error_code);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user