File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,14 @@ class CPPKAFKA_API QueueException : public Exception {
134134 Error error_;
135135};
136136
137+ /* *
138+ * Backoff performer has no more retries left for a specific action.
139+ */
140+ class CPPKAFKA_API ActionTerminatedException : public Exception {
141+ public:
142+ ActionTerminatedException (const std::string& error);
143+ };
144+
137145} // cppkafka
138146
139147#endif // CPPKAFKA_EXCEPTIONS_H
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ class CPPKAFKA_API BackoffPerformer {
136136 backoff = increase_backoff (backoff);
137137 }
138138 // No more retries left or we have a terminal error.
139- throw Exception (" Commit failed: no more retries." );
139+ throw ActionTerminatedException (" Commit failed: no more retries." );
140140 }
141141private:
142142 TimeUnit increase_backoff (TimeUnit backoff);
You can’t perform that action at this time.
0 commit comments