Coverage for src / ezcompiler / shared / exceptions / utils / uploader_exceptions.py: 100.00%
10 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-03-27 06:49 +0000
« prev ^ index » next coverage.py v7.13.5, created at 2026-03-27 06:49 +0000
1# ///////////////////////////////////////////////////////////////
2# UPLOADER_EXCEPTIONS - Uploader operation exceptions
3# Project: ezcompiler
4# ///////////////////////////////////////////////////////////////
6"""
7Uploader exceptions - Specialized exceptions for uploader operations.
9This module defines exceptions for various uploader-related failures
10used by UploaderUtils and uploader implementations.
11"""
13from __future__ import annotations
15# ///////////////////////////////////////////////////////////////
16# IMPORTS
17# ///////////////////////////////////////////////////////////////
18from .base import EzCompilerError
20# ///////////////////////////////////////////////////////////////
21# EXCEPTIONS
22# ///////////////////////////////////////////////////////////////
25class UploadError(EzCompilerError):
26 """Base exception for upload operation errors."""
29class SourcePathError(UploadError):
30 """Raised when source path for upload is invalid or inaccessible."""
33class UploaderTypeError(UploadError):
34 """Raised when upload type is not supported."""
37class ServerConfigError(UploadError):
38 """Raised when server configuration is invalid."""
41class BackupGenerationError(UploadError):
42 """Raised when backup path generation fails."""
45class UploadConnectionError(UploadError):
46 """Raised when connection to upload destination fails."""
49class UploadAuthenticationError(UploadError):
50 """Raised when authentication for upload fails."""
53class UploadTimeoutError(UploadError):
54 """Raised when upload operation times out."""