A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://morganstanley.github.io/modern-cpp-kafka/doxygen/KafkaException_8h_source.html below:

Modern C++ Kafka API: /home/runner/work/modern-cpp-kafka/modern-cpp-kafka/include/kafka/KafkaException.h Source File

3 #include <kafka/Project.h> 5 #include <kafka/Error.h> 6 #include <kafka/RdKafkaHelper.h> 7 #include <kafka/Utility.h> 9 #include <librdkafka/rdkafka.h> 25

: _when(std::chrono::system_clock::now()),

28

_error(std::make_shared<Error>(

error

))

39  const char

*

what

() const noexcept

override 41

_what = utility::getLocalTimeString(_when) +

": "

+ _error->toString() +

" ("

+ std::string(_filename) +

":"

+ std::to_string(_lineno) +

")"

;

46  using

TimePoint = std::chrono::system_clock::time_point;

48  const

TimePoint _when;

49  const

std::string _filename;

50  const

std::size_t _lineno;

51  const

std::shared_ptr<Error> _error;

52  mutable

std::string _what;

56 #define KAFKA_THROW_ERROR(error) throw KafkaException(__FILE__, __LINE__, error) 57 #define KAFKA_THROW_IF_WITH_ERROR(error) if (error) KAFKA_THROW_ERROR(error)

Unified error type.

Definition: Error.h:32

Specific exception for Kafka clients.

Definition: KafkaException.h:22

const Error & error() const

Obtains the underlying error.

Definition: KafkaException.h:34

const char * what() const noexcept override

Obtains explanatory string.

Definition: KafkaException.h:39


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4