Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ public enum Status {

TASK_PARALLELISM_PARAMS_ERROR(50080, "task parallelism parameter is not valid", "任务并行度参数无效"),
TASK_COMPLEMENT_DATA_DATE_ERROR(50081, "The range of date for complementing date is not valid", "补数选择的日期范围无效"),
WORKFLOW_DEFINE_ILLEGAL_ARG(50082, "create workflow definition illegal {0}", "创建工作流非法 {0}"),

HDFS_NOT_STARTUP(60001, "hdfs not startup", "hdfs未启用"),
STORAGE_NOT_STARTUP(60002, "storage not startup", "存储未启用"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,12 @@ private List<TaskDefinitionLog> generateTaskDefinitionList(String taskDefinition
return taskDefinitionLogs;
} catch (ServiceException ex) {
throw ex;
} catch (IllegalArgumentException ex) {
log.error("Generate task definition list failed, meet an illegal exception", ex);
throw new ServiceException(Status.WORKFLOW_DEFINE_ILLEGAL_ARG, ex.getMessage());
} catch (Exception e) {
log.error("Generate task definition list failed, meet an unknown exception", e);
throw new ServiceException(Status.REQUEST_PARAMS_NOT_VALID_ERROR);
throw new ServiceException(Status.REQUEST_PARAMS_NOT_VALID_ERROR, taskDefinitionJson);
}
}

Expand Down