This is an automated email from the ASF dual-hosted git repository. zhongjiajie pushed a commit to branch 3.0.4-prepare in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
commit e970ead651962b99fba4e1e4025d39135fd1856c Author: J·Y <[email protected]> AuthorDate: Fri Dec 9 16:17:20 2022 +0800 Throws the correct exception for the updateResource interface (#13120) Co-authored-by: rqyin <[email protected]> (cherry picked from commit f9cf9331a6d9399d512302dead39880fcd59d3e2) --- .../apache/dolphinscheduler/api/service/impl/ResourcesServiceImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ResourcesServiceImpl.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ResourcesServiceImpl.java index 5cdac59d37..fb00f2595b 100644 --- a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ResourcesServiceImpl.java +++ b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ResourcesServiceImpl.java @@ -64,7 +64,6 @@ import org.springframework.transaction.annotation.Transactional; import org.springframework.web.multipart.MultipartFile; import java.io.IOException; -import java.rmi.ServerException; import java.text.MessageFormat; import java.util.ArrayList; import java.util.Arrays; @@ -1326,7 +1325,7 @@ public class ResourcesServiceImpl extends BaseServiceImpl implements ResourcesSe return org.apache.dolphinscheduler.api.utils.FileUtils.file2Resource(localFileName); } catch (IOException e) { logger.error("download resource error, the path is {}, and local filename is {}, the error message is {}", fileName, 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"); }
