Throws the correct exception for the updateResource interface (#13120)

Co-authored-by: rqyin <rqyin@easipass.com>
This commit is contained in:
J·Y 2022-12-09 16:17:20 +08:00 committed by GitHub
parent d9998ca495
commit f9cf9331a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -72,7 +72,6 @@ import org.apache.commons.lang3.StringUtils;
import java.io.File;
import java.io.IOException;
import java.rmi.ServerException;
import java.text.MessageFormat;
import java.time.LocalDateTime;
import java.time.temporal.ChronoUnit;
@ -1739,7 +1738,7 @@ public class ResourcesServiceImpl extends BaseServiceImpl implements ResourcesSe
} catch (IOException e) {
logger.error("Download resource error, the path is {}, and local filename is {}, the error message is {}",
fullName, localFileName, e.getMessage());
throw new ServerException("Download the resource file failed ,it may be related to your storage");
throw new ServiceException("Download the resource file failed ,it may be related to your storage");
}
}