提交 aca099cb authored 作者: 000516's avatar 000516

添加京东TC报错异常信息

......@@ -47,7 +47,13 @@ public enum ECode implements StatusCode {
FEISHU_ACCESS_TOKEN_ERROR(1000, "飞书用户获取失败;"),
QC_ACCESS_TOKEN_ERROR(1001, "勤策用户获取失败;"),
/**
* 2000+ :job 模块
*/
JINGDONG_TC_ORDER_TRACE_QUERY_ERROR(2001, "获取京东TC物流轨迹失败;"),
JINGDONG_TC_ORDER_TRACE_API_ERROR(2002, "请求京东TC物流轨迹接口返回异常;"),
JINGDONG_TC_ORDER_TRACE_ERROR(2003, "未查询到京东TC物流轨迹;"),
SENT_ISNULL_ERROR(2004, "物流单异常,未找到;"),
;
private int code;
......
package com.sfa.common.core.exception;
import com.sfa.common.core.constant.StatusCode;
/**
* 业务异常
*
......@@ -44,6 +46,11 @@ public final class ServiceException extends RuntimeException
this.code = code;
}
public ServiceException(StatusCode statusCode) {
this.code = statusCode.getCode();
this.message = statusCode.getMsg();
}
public String getDetailMessage()
{
return detailMessage;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论