演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。 Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
379 B
Python
18 lines
379 B
Python
from services.errors.base import BaseServiceError
|
|
|
|
|
|
class FileNotExistsError(BaseServiceError):
|
|
pass
|
|
|
|
|
|
class FileTooLargeError(BaseServiceError):
|
|
description = "{message}"
|
|
|
|
|
|
class UnsupportedFileTypeError(BaseServiceError):
|
|
pass
|
|
|
|
|
|
class BlockedFileExtensionError(BaseServiceError):
|
|
description = "File extension '{extension}' is not allowed for security reasons"
|