class ErrorException(Exception): pass # 这个错误类型可以直接将错误传递到前端,作为错误提示 class CommonException(Exception): pass