chore: initial commit — leaudit-platform project skeleton
17-table PostgreSQL schema with full Chinese column comments, FastAPI project structure (admin/common/modules), DSL rule files, and schema migration scripts.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
"""业务异常基类。"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from fastapi_common.fastapi_common_web.domain.responses import StatusCodeEnum
|
||||
|
||||
|
||||
class BusinessException(Exception):
|
||||
"""所有业务异常继承此类。"""
|
||||
|
||||
def __init__(self, status: StatusCodeEnum, message: str):
|
||||
self.status = status
|
||||
self.message = message
|
||||
super().__init__(message)
|
||||
Reference in New Issue
Block a user