Coverage for lynceus/core/lynceus_message_status.py: 100%
7 statements
« prev ^ index » next coverage.py v7.10.0, created at 2025-07-29 08:46 +0000
« prev ^ index » next coverage.py v7.10.0, created at 2025-07-29 08:46 +0000
1"""
2This enum is mainly intended to be used by the client project to define
3 which messages worth to be shown in UX.
4"""
6from enum import Enum
9class LynceusMessageStatus(Enum):
10 """
11 Enumeration defining message status types for Lynceus framework communication.
13 This enum is primarily intended for client projects to categorize messages
14 and determine which messages are worth displaying in the user experience.
15 It provides a standardized way to classify message severity and impact.
17 The enum values help in:
18 - UI message filtering and presentation
19 - behaviour based on positive/negative impacts
20 - Error and warning handling
21 - User feedback categorization
23 Attributes:
24 NEUTRAL: Neutral informational messages
25 POSITIVE: Positive informational messages
26 NEGATIVE: Negative informational messages
27 WARNING: Alert messages requiring attention
28 ERROR: Critical failure messages
29 """
31 NEUTRAL = 'neutral'
32 POSITIVE = 'positive'
33 NEGATIVE = 'negative'
34 WARNING = 'warning'
35 ERROR = 'error'