/
githubmirror
/
the-algorithm
Обзор
Документация
Войти
/
githubmirror
/
the-algorithm
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/java/com/twitter/search/earlybird/exception/WrappedKafkaApiException.java
19 строк
645 B
twitter-team
Twitter Recommendation Algorithm
01 апр 2023, 01:36
01 апр 2023, 01:36
ef4c5eb
Код
Авторство
О чём код?
package com.twitter.search.earlybird.exception; import org.apache.kafka.common.errors.ApiException; /** * Kafka's ApiException class doesn't retain its stack trace (see its source code). * As a result a kafka exception that propagates up the call chain can't point to where exactly * did the exception happen in our code. As a solution, use this class when calling kafka API * methods. */ public class WrappedKafkaApiException extends RuntimeException { public WrappedKafkaApiException(ApiException cause) { super(cause); } public WrappedKafkaApiException(String message, ApiException cause) { super(message, cause); } }