first commit

This commit is contained in:
strepsiades
2026-03-09 16:31:42 +08:00
commit 4a9c444b10
486 changed files with 52479 additions and 0 deletions
@@ -0,0 +1,25 @@
"""
API Handler 通用错误常量
"""
# API Client 相关错误
ERROR_API_CLIENT_NOT_INITIALIZED = "api_client not initialized"
ERROR_API_CLIENT_NOT_INJECTED = "api_client not injected"
# Collection 相关错误
ERROR_COLLECTION_NOT_SET = "collection not set"
# 数据验证错误
ERROR_NODE_DATA_NONE = "Node data is None or validation failed"
ERROR_VALIDATION_FAILED = "Validation failed"
# 业务数据错误
ERROR_PROJECT_ID_NOT_FOUND = "project_id not found"
ERROR_CONTRACT_ID_NOT_FOUND = "contract_id not found"
ERROR_ID_NOT_FOUND = "id not found"
# 操作不支持错误
ERROR_OPERATION_NOT_SUPPORTED = "Operation not supported"
ERROR_CREATE_NOT_SUPPORTED = "Create operation not supported"
ERROR_UPDATE_NOT_SUPPORTED = "Update operation not supported"
ERROR_DELETE_NOT_SUPPORTED = "Delete operation not supported"