exceptionEnum.ts 471 B

123456789101112131415161718192021222324252627
  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. }
  16. export enum ErrorTypeEnum {
  17. VUE = 'vue',
  18. SCRIPT = 'script',
  19. RESOURCE = 'resource',
  20. AJAX = 'ajax',
  21. PROMISE = 'promise',
  22. }