Bugfix: 401错误码XTS异常整改

Signed-off-by: xuzhihao <xuzhihao16@huawei.com>
This commit is contained in:
xuzhihao
2024-05-11 10:51:10 +08:00
parent e97f12ee69
commit ba0935536c
+3 -3
View File
@@ -51,10 +51,10 @@ class BusinessError extends Error {
class ThrowInvalidParamError extends Error {
constructor(msg) {
let code = ERROR_CODE_INVALID_PARAM;
this.code = ERROR_CODE_INVALID_PARAM;
let oriMsg = ERROR_MSG_INVALID_PARAM;
super(code);
this.msg = oriMsg + msg;
let message = oriMsg + msg;
super(message);
}
}