/
githubmirror
/
the-algorithm
Обзор
Документация
Войти
/
githubmirror
/
the-algorithm
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/java/com/twitter/search/earlybird/exception/UncaughtExceptionHandler.java
23 строки
633 B
twitter-team
Twitter Recommendation Algorithm
01 апр 2023, 01:36
01 апр 2023, 01:36
ef4c5eb
Код
Авторство
О чём код?
package com.twitter.search.earlybird.exception; import com.twitter.util.AbstractMonitor; public class UncaughtExceptionHandler extends AbstractMonitor { private final CriticalExceptionHandler criticalExceptionHandler; public UncaughtExceptionHandler() { this.criticalExceptionHandler = new CriticalExceptionHandler(); } public void setShutdownHook(Runnable shutdown) { this.criticalExceptionHandler.setShutdownHook(shutdown); } @Override public boolean handle(Throwable e) { criticalExceptionHandler.handle(this, e); // We return true here because we handle all exceptions. return true; } }