13 using std::runtime_error::runtime_error;
22 SendException(
const char* what,
bool is_retryable);
25 const bool is_retryable_{
false};
29 static constexpr const char* kWhat{
30 "Message is not delivered after `delivery_timeout` milliseconds. Hint: "
31 "Adjust `delivery_timeout` and `queue_buffering_*` options or manually "
32 "retry the send request."};
35 DeliveryTimeoutException();
39 static constexpr const char* kWhat{
40 "The sending queue is full - send request cannot be scheduled. Hint: "
41 "Manually retry the error or increase `queue_buffering_max_messages` "
42 "and/or `queue_buffering_max_kbytes` config option."};
49 static constexpr const char* kWhat{
50 "Message size exceeds configured limit. Hint: increase "
51 "`message_max_bytes` config option."};
54 MessageTooLargeException();
58 static constexpr const char* kWhat{
"Given topic does not exist in cluster."};
61 UnknownTopicException();
65 static constexpr const char* kWhat =
"Topic does not have given partition.";
68 UnknownPartitionException();