Код: Выделить всё
try {
methodA();
} catch(InterruptedException e) {
e.printStackTrace();
Thread.currentThread().interrupt();
throw new MyCustomException(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);
} catch (Exception e) {
e.printStackTrace();
throw new MyCustomException(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);
}
methodA() throws InterruptedException{
....
ProcessExecutor.execute(....);
....
}
Это ошибка оптимальный способ?
Подробнее здесь: https://stackoverflow.com/questions/790 ... dexception
Мобильная версия