"""Exceptions for nomo_e2e."""


class WebViewError(Exception):
    """Base exception for WebView operations."""


class WebViewConnectionError(WebViewError):
    """Raised when connection or session creation fails."""


class WebViewTimeoutError(WebViewError):
    """Raised when operation times out."""


class WebViewElementNotFoundError(WebViewError):
    """Raised when target element cannot be found."""


class WebViewProtocolError(WebViewError):
    """Raised when protocol returns an error payload."""


class WebViewOperationError(WebViewError):
    """Raised when operation cannot be completed."""
