You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by zh...@apache.org on 2022/12/28 06:21:51 UTC
[dolphinscheduler] 06/11: Throws the correct exception for the updateResource interface (#13120)
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 <ji...@gmail.com>
AuthorDate: Fri Dec 9 16:17:20 2022 +0800
Throws the correct exception for the updateResource interface (#13120)
Co-authored-by: rqyin <rq...@easipass.com>
(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");
}