exception 처리 수정

This commit is contained in:
2025-03-27 13:55:14 +09:00
parent 0fbfdd906b
commit 49dab65d25

View File

@@ -54,11 +54,15 @@ public class RabbitMqService {
}
catch (InvalidProtocolBufferException e) {
log.error("InvalidProtocolBufferException message: {}, destServer: {}, e.Message : {}", message.toString(), destServer, e.getMessage());
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.EXCEPTION_INVALID_PROTOCOL_BUFFER_EXCEPTION_ERROR.getMessage());
throw new RuntimeException("InvalidProtocolBufferException message: " + message, e);
}
catch (IOException e) {
log.error("IOException message: {}, destServer: {}, e.Message : {}", message.toString(), destServer, e.getMessage());
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.EXCEPTION_IO_EXCEPTION_ERROR.getMessage());
throw new RuntimeException("IOException message: " + message, e);
}
catch (Exception e) {
log.error("Exception message: {}, destServer: {}, e.Message : {}", message.toString(), destServer, e.getMessage());
throw new RuntimeException("Exception message: " + message, e);
}
}