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
Raised when the device does not support a requested feature.
This signals a permanent condition: the device does not expose the requested parameters (for example a heating or hot water schedule), so retrying the same request will never succeed.
Source code in src/bsblan/exceptions.py
BSBLANMalformedResponseError¶
bsblan.BSBLANMalformedResponseError
¶
Bases: BSBLANError
Raised when a device response cannot be decoded or parsed.
This signals a transient condition: the response body could not be decoded or parsed as valid JSON, so a retry may succeed.