exceptionEnum.ts 577 B

1234567891011121314151617181920212223242526272829
  1. /**
  2. * @description: Exception related enumeration
  3. */
  4. export enum ExceptionEnum {
  5. // page not access
  6. PAGE_NOT_ACCESS = 403,
  7. // page not found
  8. PAGE_NOT_FOUND = 404,
  9. // error
  10. ERROR = 500,
  11. // net work error
  12. NET_WORK_ERROR = 10000,
  13. // No data on the page. In fact, it is not an exception page
  14. PAGE_NOT_DATA = 10100,
  15. //短信验证码次数太多失败code,用于判断是否打开弹窗
  16. PHONE_SMS_FAIL_CODE = 40002,
  17. }
  18. export enum ErrorTypeEnum {
  19. VUE = 'vue',
  20. SCRIPT = 'script',
  21. RESOURCE = 'resource',
  22. AJAX = 'ajax',
  23. PROMISE = 'promise',
  24. }