vben
2020-10-18 7101587b9676c91e9079044a096df08848f1f602
提交 | 用户 | age
2f6253 1 /**
2  * @description: Exception related enumeration
3  */
4 export enum ExceptionEnum {
5   // page not found
6   PAGE_NOT_FOUND = 404,
7
8   // error
9   ERROR = 500,
10
11   // net work error
12   NET_WORK_ERROR = 10000,
13
14   // net work timeout
15   NET_WORK_TIMEOUT = 10100,
16
17   // not data
18   NOT_DATA = 10200,
19
20   // The page loads too long and timeout
21   PAGE_TIMEOUT = 10300,
22
23   // No data on the page. In fact, it is not an exception page
24   PAGE_NOT_DATA = 10400,
25 }
710158 26
V 27 export enum ErrorTypeEnum {
28   VUE = 'vue',
29   SCRIPT = 'script',
30   RESOURCE = 'resource',
31   AJAX = 'ajax',
32   PROMISE = 'promise',
33 }