pywry.exceptions¶
Exception hierarchy for PyWry error handling.
pywry.exceptions.PyWryException
¶
Bases: Exception
Base exception for all PyWry errors.
Initialize PyWry exception.
| PARAMETER | DESCRIPTION |
|---|---|
message
|
Human-readable error message.
TYPE:
|
**context
|
Additional context (label, method, request_id, etc.).
TYPE:
|
Functions¶
pywry.exceptions.WindowError
¶
Bases: PyWryException
Window operation failed.
Raised when a window is not found, already destroyed, or an operation cannot be performed on it.
Initialize window error.
| PARAMETER | DESCRIPTION |
|---|---|
message
|
Human-readable error message.
TYPE:
|
label
|
The window label that caused the error.
TYPE:
|
**context
|
Additional context.
TYPE:
|
Functions¶
pywry.exceptions.IPCError
¶
Bases: PyWryException
IPC communication failed.
Raised when communication with the subprocess fails, including encoding/decoding errors and pipe failures.
Initialize IPC error.
| PARAMETER | DESCRIPTION |
|---|---|
message
|
Human-readable error message.
TYPE:
|
action
|
The IPC action that failed.
TYPE:
|
label
|
The window label involved.
TYPE:
|
**context
|
Additional context.
TYPE:
|
Functions¶
pywry.exceptions.IPCTimeoutError
¶
IPCTimeoutError(message: str, timeout: float, action: str | None = None, label: str | None = None, **context: Any)
Bases: IPCError
IPC response timeout.
Raised when waiting for a subprocess response exceeds the configured timeout.
Initialize timeout error.
| PARAMETER | DESCRIPTION |
|---|---|
message
|
Human-readable error message.
TYPE:
|
timeout
|
The timeout value in seconds.
TYPE:
|
action
|
The IPC action that timed out.
TYPE:
|
label
|
The window label involved.
TYPE:
|
**context
|
Additional context.
TYPE:
|
Functions¶
pywry.exceptions.PropertyError
¶
Bases: PyWryException
Failed to get or set a window property.
Raised when a property access or modification fails, typically due to the property not existing or being read-only.
Initialize property error.
| PARAMETER | DESCRIPTION |
|---|---|
message
|
Human-readable error message.
TYPE:
|
property_name
|
The property that caused the error.
TYPE:
|
label
|
The window label involved.
TYPE:
|
**context
|
Additional context.
TYPE:
|
Functions¶
pywry.exceptions.SubprocessError
¶
Bases: PyWryException
Subprocess-related error.
Raised when the pytauri subprocess fails to start, crashes unexpectedly, or returns an error.
Initialize subprocess error.
| PARAMETER | DESCRIPTION |
|---|---|
message
|
Human-readable error message.
TYPE:
|
exit_code
|
The subprocess exit code if available.
TYPE:
|
**context
|
Additional context.
TYPE:
|