2020-09-28 20:19:10 +08:00
|
|
|
/**
|
|
|
|
|
* @description: Exception related enumeration
|
|
|
|
|
*/
|
|
|
|
|
export enum ExceptionEnum {
|
2020-11-03 22:26:26 +08:00
|
|
|
// page not access
|
|
|
|
|
PAGE_NOT_ACCESS = 403,
|
|
|
|
|
|
2020-09-28 20:19:10 +08:00
|
|
|
// page not found
|
|
|
|
|
PAGE_NOT_FOUND = 404,
|
|
|
|
|
|
|
|
|
|
// error
|
|
|
|
|
ERROR = 500,
|
|
|
|
|
|
|
|
|
|
// net work error
|
|
|
|
|
NET_WORK_ERROR = 10000,
|
|
|
|
|
|
|
|
|
|
// No data on the page. In fact, it is not an exception page
|
2020-11-03 22:26:26 +08:00
|
|
|
PAGE_NOT_DATA = 10100,
|
2020-09-28 20:19:10 +08:00
|
|
|
}
|
2020-10-18 21:55:21 +08:00
|
|
|
|
|
|
|
|
export enum ErrorTypeEnum {
|
|
|
|
|
VUE = 'vue',
|
|
|
|
|
SCRIPT = 'script',
|
|
|
|
|
RESOURCE = 'resource',
|
|
|
|
|
AJAX = 'ajax',
|
|
|
|
|
PROMISE = 'promise',
|
|
|
|
|
}
|