Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Added exceptions file

Anish Hiranandani1f509a89d53b
diff --git a/browser_use/exceptions.py b/browser_use/exceptions.py
new file mode 100644
index 000000000..b4d10766a
--- /dev/null
+++ b/browser_use/exceptions.py
@@ -0,0 +1,5 @@
+class LLMException(Exception):
+ def __init__(self, status_code, message):
+ self.status_code = status_code
+ self.message = message
+ super().__init__(f"Error {status_code}: {message}")
\ No newline at end of file