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

1# /////////////////////////////////////////////////////////////// 

2# UPLOADER_EXCEPTIONS - Uploader operation exceptions 

3# Project: ezcompiler 

4# /////////////////////////////////////////////////////////////// 

5 

6""" 

7Uploader exceptions - Specialized exceptions for uploader operations. 

8 

9This module defines exceptions for various uploader-related failures 

10used by UploaderUtils and uploader implementations. 

11""" 

12 

13from __future__ import annotations 

14 

15# /////////////////////////////////////////////////////////////// 

16# IMPORTS 

17# /////////////////////////////////////////////////////////////// 

18from .base import EzCompilerError 

19 

20# /////////////////////////////////////////////////////////////// 

21# EXCEPTIONS 

22# /////////////////////////////////////////////////////////////// 

23 

24 

25class UploadError(EzCompilerError): 

26 """Base exception for upload operation errors.""" 

27 

28 

29class SourcePathError(UploadError): 

30 """Raised when source path for upload is invalid or inaccessible.""" 

31 

32 

33class UploaderTypeError(UploadError): 

34 """Raised when upload type is not supported.""" 

35 

36 

37class ServerConfigError(UploadError): 

38 """Raised when server configuration is invalid.""" 

39 

40 

41class BackupGenerationError(UploadError): 

42 """Raised when backup path generation fails.""" 

43 

44 

45class UploadConnectionError(UploadError): 

46 """Raised when connection to upload destination fails.""" 

47 

48 

49class UploadAuthenticationError(UploadError): 

50 """Raised when authentication for upload fails.""" 

51 

52 

53class UploadTimeoutError(UploadError): 

54 """Raised when upload operation times out."""