fix file ClientAbortException
This commit is contained in:
@@ -70,7 +70,7 @@ public class AliFileStorage implements IFileStorage {
|
||||
try {
|
||||
IOUtils.copy(is, os);
|
||||
} catch (ClientAbortException e) {
|
||||
throw new BusinessException("下载客户端异常:" + e.getMessage());
|
||||
log.warn("客户端主动断开连接: {}", e.getMessage());
|
||||
}
|
||||
} catch (IOException ie) {
|
||||
log.info("Caught an IOException", ie);
|
||||
@@ -115,7 +115,7 @@ public class AliFileStorage implements IFileStorage {
|
||||
log.info("Caught an ClientException, which means the client encountered "
|
||||
+ "a serious internal problem while trying to communicate with OSS, "
|
||||
+ "such as not being able to access the network.");
|
||||
log.info("Error Message:" + ce.getMessage());
|
||||
log.info("Error Message:{}-{}", bucketName, ce.getMessage());
|
||||
throw new DevopsException("oss客户端异常" + ce.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user