2026-08-06 20:03:06 +08:00

14 lines
411 B
Python

"""Shared upload validation and publication errors."""
class PathTraversalError(ValueError):
"""Raised when a path escapes its allowed base directory."""
class UnsafeUploadPathError(ValueError):
"""Raised when an upload destination is not a safe regular file path."""
class AtomicUploadPublishError(UnsafeUploadPathError):
"""Raised when storage cannot honor atomic no-replace publication."""