Skip to content
YosoiDocs

BrowserCleanupError

yosoi.browser.BrowserCleanupError

class BrowserCleanupError(RuntimeError):

Retain cleanup failures alongside the original operation exception.

Attributes: original_error: Exception raised before context cleanup failed. cleanup_errors: Cleanup exceptions retained in order.

Source: python/yosoi/browser.py:1324

Members below are declared on this class. Inherited Pydantic methods and generated constructor signatures are not expanded.

def __init__(self, original_error: BaseException, cleanup_errors: tuple[BaseException, ...]) -> None:

Preserve the operation exception alongside subsequent cleanup failures.

Args: original_error: Exception raised by the operation or caller cancellation. cleanup_errors: Exceptions raised while settling cleanup.

Source: python/yosoi/browser.py:1332