This commit is contained in:
2026-09-24 16:25:22 +08:00
commit 7428184f01
1198 changed files with 314515 additions and 0 deletions
@@ -0,0 +1,19 @@
/* 此规范为 uni 规范,可以按照自己的需要选择是否实现 */
import { XuiChineseToPinYinFail } from "./interface.uts"
export const XuiErrors : Map<number, string> = new Map([
[1001, '函数内部错误'],
[1002, '参数错误,缺少char参数或者char为空'],
]);
export class XuiChineseToPinYinFailImpl extends UniError implements XuiChineseToPinYinFail {
/**
* 错误对象构造函数
*/
constructor(errCode : number) {
super();
this.errSubject = "x-chinesetopinyin-s";
this.errCode = errCode;
this.errMsg = XuiErrors.get(errCode) ?? "";
}
}