535d97a70c
17-table PostgreSQL schema with full Chinese column comments, FastAPI project structure (admin/common/modules), DSL rule files, and schema migration scripts.
15 lines
382 B
Python
15 lines
382 B
Python
"""业务异常基类。"""
|
|
|
|
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)
|