addproject
This commit is contained in:
8
base_framework/public_tools/custom_error.py
Normal file
8
base_framework/public_tools/custom_error.py
Normal file
@@ -0,0 +1,8 @@
|
||||
# -*- coding:utf-8 -*-
|
||||
# 存放自定义异常类
|
||||
|
||||
class BusinessError(Exception):
|
||||
"""功能:用于AITA项目识别是业务异常,需返给前端做展示"""
|
||||
def __init__(self, message="这里是自定义的业务异常"):
|
||||
self.message = message
|
||||
super().__init__(self.message)
|
||||
Reference in New Issue
Block a user