Coverage for src/ezcompiler/shared/exceptions/utils/_publish_exceptions.py: 100.00%

6 statements  

« prev     ^ index     » next       coverage.py v7.16.2, created at 2026-10-16 16:37 +0000

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

2# PUBLISH_EXCEPTIONS - Release publication (gh/glab) exceptions 

3# Project: ezcompiler 

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

5 

6"""Specialized exceptions for release publication.""" 

7 

8from __future__ import annotations 

9 

10# /////////////////////////////////////////////////////////////// 

11# IMPORTS 

12# /////////////////////////////////////////////////////////////// 

13from ._base import EzCompilerError 

14 

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

16# EXCEPTIONS 

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

18 

19 

20class PublishError(EzCompilerError): 

21 """Base exception for release publication errors (canonical).""" 

22 

23 

24class PublisherTypeError(PublishError): 

25 """Raised when the requested publisher type is not supported.""" 

26 

27 

28class PublishCliError(PublishError): 

29 """Raised when the external CLI is missing or exits non-zero.""" 

30 

31 

32class PublishAuthError(PublishError): 

33 """Raised when the external CLI is not authenticated."""