Something went wrong. Try again.
small gleam coding and persistent agent daemon with a detachable cli and a canvas ui albedo.sh
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475"""Errors expose data rather than requiring agents to parse exception prose."""
from __future__ import annotations
class BrowserError(Exception): kind = "browser_error"
def __init__(self, message: str, **details: object) -> None: super().__init__(message) self.details = details
def to_dict(self) -> dict[str, object]: return {"kind": self.kind, "message": str(self), **self.details}
class ConnectionLost(BrowserError): kind = "connection_lost"
class CommandTimeout(BrowserError): kind = "command_timeout"
class ProtocolError(BrowserError): kind = "protocol_error"
class EventOverflow(BrowserError): kind = "event_overflow"
class WaitTimeout(BrowserError): kind = "wait_timeout"
class SelectionError(BrowserError): kind = "selection_error"
class StaleReference(BrowserError): kind = "stale_reference"
class NotActionable(BrowserError): kind = "not_actionable"
class ActionOutcomeUnknown(BrowserError): kind = "action_outcome_unknown"
class JavaScriptError(BrowserError): kind = "javascript_error"
class UnsupportedOperation(BrowserError): kind = "unsupported_operation"
class IncompleteObservation(BrowserError): kind = "incomplete_observation"
class LaunchError(BrowserError): kind = "launch_error"
class TargetGone(BrowserError): kind = "target_gone"
class RecoveryError(BrowserError): kind = "recovery_error"