Exceptions¶
exceptions ¶
Custom exception classes for cdpwave errors.
CDPError ¶
ConnectionClosedError ¶
ConnectionReconnectError ¶
Bases: ConnectionClosedError
Raised when a pending command is lost during reconnection.
Inherits from ConnectionClosedError so existing except ConnectionClosedError
handlers still catch it. Users can catch this specifically to retry commands.
Source code in cdpwave/exceptions.py
CommandError ¶
Bases: CDPError
Raised when a CDP command returns an error response.
Attributes:
| Name | Type | Description |
|---|---|---|
code |
The CDP error code. |
|
message |
The CDP error message. |
|
data |
Optional additional error data from the CDP response. |