oak-domain 5.0.13 → 5.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,8 +8,14 @@ export declare class OakException<ED extends EntityDict> extends Error {
8
8
  name: string;
9
9
  message: string;
10
10
  opRecords: OpRecord<ED>[];
11
+ tag1: string | undefined;
12
+ tag2: boolean | undefined;
13
+ tag3: any;
11
14
  };
12
15
  toString(): string;
16
+ tag1?: string;
17
+ tag2?: boolean;
18
+ tag3?: any;
13
19
  }
14
20
  export declare class OakMakeSureByMySelfException<ED extends EntityDict> extends OakException<ED> {
15
21
  }
@@ -37,11 +37,18 @@ class OakException extends Error {
37
37
  name: this.constructor.name,
38
38
  message: this.message,
39
39
  opRecords: this.opRecords,
40
+ tag1: this.tag1,
41
+ tag2: this.tag2,
42
+ tag3: this.tag3,
40
43
  };
41
44
  }
42
45
  toString() {
43
46
  return JSON.stringify(this.getSerialData());
44
47
  }
48
+ // 留三个tag1供其它类使用
49
+ tag1;
50
+ tag2;
51
+ tag3;
45
52
  }
46
53
  exports.OakException = OakException;
47
54
  // 这个异常表示模块自己处理跨事务一致性,框架pass(在分布式数据传递时会用到)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oak-domain",
3
- "version": "5.0.13",
3
+ "version": "5.0.14",
4
4
  "author": {
5
5
  "name": "XuChang"
6
6
  },