EnhancedTimeoutException class
An enhanced timeout exception that provides additional context about timeout failures.
This exception extends TimeoutException to include more detailed information about what was being waited for and the context of the timeout.
- Inheritance
-
- Object
- BrowserException
- TimeoutException
- EnhancedTimeoutException
Constructors
- EnhancedTimeoutException(String message, {Duration? timeout, String? selector, String? action, String? screenshotPath, String? details})
- Creates an EnhancedTimeoutException with additional context information.
Properties
- action → String?
-
The action that was being performed when the timeout occurred.
final
- cause → dynamic
-
The underlying error or exception that caused this BrowserException, if any.
finalinherited
- details → String?
-
Additional details about the timeout context.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
A message describing the error.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- screenshotPath → String?
-
The path to a screenshot captured when the timeout occurred, if available.
final
- selector → String?
-
The CSS selector or element identifier that was being waited for.
final
- timeout → Duration?
-
A message describing the browser error.
The timeout duration that was exceeded, if available.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns a detailed string representation of the timeout exception including all context information.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited