Exceptions¶
exceptions ¶
Exception hierarchy for wavexis.
WavexisError ¶
BackendNotAvailableError ¶
Bases: WavexisError
Raised when no backend (cdpwave/bidiwave) is installed.
Source code in wavexis/exceptions.py
__init__ ¶
Initialize the error.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
backend
|
str | None
|
Optional backend name that was requested but not available. |
None
|
Source code in wavexis/exceptions.py
BackendNotSupportedError ¶
Bases: WavexisError
Raised when a backend doesn't support a method.
Source code in wavexis/exceptions.py
__init__ ¶
Initialize the error.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
method
|
str
|
The unsupported method name. |
required |
backend
|
str
|
The backend name that doesn't support the method. |
required |
Source code in wavexis/exceptions.py
SessionNotInitializedError ¶
Bases: WavexisError
Raised when a backend method is called before launch().
Source code in wavexis/exceptions.py
__init__ ¶
Initialize the error.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
msg
|
str | None
|
Optional custom message. |
None
|
Source code in wavexis/exceptions.py
NavigationError ¶
Bases: WavexisError
Raised when navigation fails or times out.
Source code in wavexis/exceptions.py
__init__ ¶
Initialize the error.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
url
|
str
|
The URL that failed to navigate to. |
required |
reason
|
str
|
The failure reason. |
required |
Source code in wavexis/exceptions.py
WaitTimeoutError ¶
Bases: WavexisError
Raised when a wait strategy times out.
Source code in wavexis/exceptions.py
__init__ ¶
Initialize the error.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
strategy
|
str
|
The wait strategy name that timed out. |
required |
timeout_ms
|
int
|
The timeout duration in milliseconds. |
required |
Source code in wavexis/exceptions.py
ElementNotFoundError ¶
Bases: WavexisError
Raised when a CSS selector matches no elements.
Source code in wavexis/exceptions.py
__init__ ¶
Initialize the error.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
selector
|
str
|
The CSS selector that matched no elements. |
required |
Source code in wavexis/exceptions.py
ActionError ¶
Bases: WavexisError
Raised when an action fails during execution.
MultiConfigError ¶
Bases: WavexisError
Raised when a multi YAML config is invalid.
Source code in wavexis/exceptions.py
__init__ ¶
Initialize the error.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
field
|
str
|
The invalid config field name. |
required |
reason
|
str
|
The validation failure reason. |
required |