You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
589B

  1. from enum import Enum, unique
  2. @unique
  3. class ExceptionType(Enum):
  4. ILLEGAL_PARAMETER_FORMAT = ("CN000", "参数格式错误!")
  5. SERVICE_INNER_EXCEPTION = ("CN999", "系统内部异常!")
  6. @unique
  7. class StreamStrExceptionType(Enum):
  8. PUSH_STREAM_TASK_IS_AREADLY = ("PT000", "推流任务已存在!")
  9. PUSH_STREAM_TASK_IS_NOT_AREADLY = ("PT001", "推流任务不存在!")
  10. PULL_STREAM_URL_IS_NULL = ("PT002", "拉流地址不能为空!")
  11. PUSH_STREAM_URL_IS_NULL = ("PT003", "推流地址不能为空!")
  12. SERVICE_INNER_EXCEPTION = ("PT999", "系统内部异常!")