Coverage for src / ezqt_app / domain / results / result_error.py: 100.00%

8 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-04-06 13:12 +0000

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

2# DOMAIN.RESULTS.RESULT_ERROR - Structured result error model 

3# Project: ezqt_app 

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

5 

6"""Pure error model used by typed result objects.""" 

7 

8from __future__ import annotations 

9 

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

11# IMPORTS 

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

13from dataclasses import dataclass 

14 

15from ...shared.types import JsonMap 

16 

17 

18# /////////////////////////////////////////////////////////////// 

19# DATACLASSES 

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

21@dataclass(slots=True) 

22class ResultError: 

23 """Structured error payload for operation results.""" 

24 

25 code: str 

26 message: str 

27 context: JsonMap | None = None