bugfix MissMavenDependencyException 格式化问题

This commit is contained in:
tkc
2025-11-22 20:34:49 +08:00
parent b49e5716b5
commit 5d4ffeb4fc

View File

@@ -1,7 +1,11 @@
package com.yomahub.liteflow.exception;
import cn.hutool.core.map.MapBuilder;
import cn.hutool.core.util.StrUtil;
import java.util.HashMap;
import java.util.Map;
/**
* 缺少 maven 依赖异常
*
@@ -24,7 +28,14 @@ public class MissMavenDependencyException extends RuntimeException {
private String message;
public MissMavenDependencyException(String groupId, String artifactId) {
this.message = StrUtil.format(TEMPLATE, groupId, artifactId);
Map<String, String> params = MapBuilder.create(new HashMap<String, String>())
.put("groupId", groupId)
.put("artifactId", artifactId)
.build();
this.message = StrUtil.format(TEMPLATE, MapBuilder.create(new HashMap<String, String>())
.put("groupId", groupId)
.put("artifactId", artifactId)
.build());
}
@Override