Configuration Error¶
configuration_error
¶
Configuration error for invalid runtime settings.
Defines ConfigurationError, raised when a component is configured
with settings that fall outside the allowed range or format (e.g.,
disallowed URL schemes, invalid filesystem paths, or out-of-range
parameters).
ConfigurationError
¶
Bases: ValueErrorMixin, Error[MetadataValueType]
Raised when a component receives invalid configuration.
This error signals operational misconfiguration at runtime —
for example, a URL with a disallowed scheme, an invalid
filesystem path, or an out-of-range parameter value.
Source code in src/forging_blocks/foundation/errors/configuration_error.py
__init__(message: str) -> None
¶
Initialise with a descriptive configuration-violation message.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str
|
Human-readable description of the misconfiguration, |
required |