Core
Core error components for the building blocks foundation.
Defines fundamental data structures for error messages, metadata, and field references.
core
Core error components for the building blocks foundation.
Defines fundamental data structures for error messages, metadata, and field references.
ErrorMessage
dataclass
Represents an immutable error message component.
Source code in src/forging_blocks/foundation/errors/core.py
| @dataclass(frozen=True)
class ErrorMessage:
"""Represents an immutable error message component."""
value: str
|
Represents metadata about the error.
Source code in src/forging_blocks/foundation/errors/core.py
| @dataclass(frozen=True)
class ErrorMetadata:
"""Represents metadata about the error."""
context: dict[str, Any] = field(default_factory=dict)
|
FieldReference
dataclass
Represents a reference to a field in the error message.
Source code in src/forging_blocks/foundation/errors/core.py
| @dataclass(frozen=True)
class FieldReference:
"""Represents a reference to a field in the error message."""
value: str
|