Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

47 lines
1.6KB

  1. from enum import Enum, unique
  2. # 异常枚举
  3. @unique
  4. class ExceptionType(Enum):
  5. VIDEO_UPDATE_EXCEPTION = ("SP000", "Video upload exception!")
  6. OR_VIDEO_ADDRESS_EXCEPTION = ("SP001", "Original Video Address Error!")
  7. ANALYSE_TIMEOUT_EXCEPTION = ("SP002", "Analysis Timeout Exception!")
  8. PULLSTREAM_TIMEOUT_EXCEPTION = ("SP003", "Pull Stream Timeout Exception!")
  9. READSTREAM_TIMEOUT_EXCEPTION = ("SP004", "READ Stream Timeout Exception!")
  10. GET_VIDEO_URL_EXCEPTION = ("SP005", "Get Video Url Exception!")
  11. GET_VIDEO_URL_TIMEOUT_EXCEPTION = ("SP006", "Get Video Url Timeout Exception!")
  12. PULL_STREAM_URL_EXCEPTION = ("SP007", "Pull Stream Address Is Empty!")
  13. PULL_PIPELINE_INIT_EXCEPTION = ("SP008", "Pull Stream PIPELINE Exception!")
  14. PUSH_STREAM_URL_EXCEPTION = ("SP009", "Push Stream Address Is Empty!")
  15. CV2_IS_NULL_EXCEPTION = ("SP010", "The CV2 Is Empty!")
  16. OR_WRITE_OBJECT_EXCEPTION = ("SP011", "The Original Video Writing Object Is Empty!")
  17. AI_WRITE_OBJECT_EXCEPTION = ("SP012", "The Ai Video Writing Object Is Empty!")
  18. VIDEO_ADDRESS_EXCEPTION = ("SP013", "The Video Address Does Not Exist!")
  19. AI_VIDEO_ADDRESS_EXCEPTION = ("SP014", "AI Video Address Error!")
  20. OFFLINE_RETRY_TIMEOUT_EXCEPTION = ("SP015", "Offline Retry Timeout Exception!")
  21. AI_MODEL_CONFIG_EXCEPTION = ("SP016", "AI Model Config Exception!")
  22. AI_MODEL_MATCH_EXCEPTION = ("SP017", "The AI Model Is Not Matched!")
  23. VIDEO_MERGE_EXCEPTION = ("SP018", "The Video Merge Exception!")
  24. SERVICE_INNER_EXCEPTION = ("SP999", "系统内部异常, 请联系工程师定位处理!")