Exceptions¶
Custom exceptions raised by the library.
BSBLANError¶
bsblan.BSBLANError
¶
Bases: Exception
Generic BSBLAN exception.
Initialize a new instance of the BSBLANError class.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str | None
|
Optional custom error message. |
None
|
Source code in src/bsblan/exceptions.py
BSBLANConnectionError¶
bsblan.BSBLANConnectionError
¶
Bases: BSBLANError
BSBLAN connection exception.
Initialize a new instance of the BSBLANConnectionError class.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str | None
|
Optional error message. |
None
|
Source code in src/bsblan/exceptions.py
BSBLANAuthError¶
bsblan.BSBLANAuthError
¶
BSBLANUnsupportedFeatureError¶
bsblan.BSBLANUnsupportedFeatureError
¶
Bases: BSBLANError
A feature is unavailable in the current context; permanence is not implied.
Source code in src/bsblan/exceptions.py
BSBLANMalformedResponseError¶
bsblan.BSBLANMalformedResponseError
¶
Bases: BSBLANError
A response cannot be decoded or parsed; its retryability is unknown.
Source code in src/bsblan/exceptions.py
BSBLANScheduleMappingError¶
bsblan.BSBLANScheduleMappingError
¶
Bases: BSBLANError
A configured mapping is missing or invalid for a schedule operation.
Retain the schedule group, circuit, and local failure reason.
Source code in src/bsblan/exceptions.py
BSBLANScheduleProbeError¶
bsblan.BSBLANScheduleProbeError
¶
Bases: BSBLANError
Schedule compatibility is inconclusive; retry rather than repair mappings.
Retain group context without classifying this as a mapping failure.
Source code in src/bsblan/exceptions.py
An automatic compatibility probe was inconclusive. Retry discovery rather than opening a wrong-mapping repair. Connection, authentication and malformed-response errors continue to propagate as their existing exception types.
BSBLANScheduleWriteError¶
bsblan.BSBLANScheduleWriteError
¶
BSBLANScheduleWriteError(
*,
kind: str,
circuit: int | None,
acknowledged_days: tuple[Weekday, ...],
failed_day: Weekday,
parameter_id: str,
unattempted_days: tuple[Weekday, ...],
outcome: Literal["rejected", "unknown"]
)
Bases: BSBLANError
A sequential write stopped; the failed day may have an uncertain outcome.
Keep partial progress separate from acknowledgement or readback proof.
Source code in src/bsblan/exceptions.py
A partial/uncertain write is not rolled back. Inspect acknowledged, failed and unattempted days, then perform explicit readback; see the migration guide.