2023-05-15 00:51:32 +00:00
|
|
|
from services.errors.base import BaseServiceError
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class FileNotExistsError(BaseServiceError):
|
|
|
|
|
pass
|
2023-09-27 08:06:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class FileTooLargeError(BaseServiceError):
|
|
|
|
|
description = "{message}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class UnsupportedFileTypeError(BaseServiceError):
|
|
|
|
|
pass
|
2025-11-04 07:45:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class BlockedFileExtensionError(BaseServiceError):
|
|
|
|
|
description = "File extension '{extension}' is not allowed for security reasons"
|