Abhaykoul commited on
Commit
f5fc1ed
1 Parent(s): 31a6d71

Update webscout.py

Browse files
Files changed (1) hide show
  1. webscout.py +17 -0
webscout.py CHANGED
@@ -32,7 +32,24 @@ from .utils import (
32
 
33
  logger = logging.getLogger("webscout.WEBS")
34
 
 
 
35
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  class WEBS:
37
  """webscout class to get search results from duckduckgo.com."""
38
 
 
32
 
33
  logger = logging.getLogger("webscout.WEBS")
34
 
35
+ class WebscoutE(Exception):
36
+ """Base exception class for search."""
37
 
38
+
39
+ class RatelimitE(Exception):
40
+ """Raised for rate limit exceeded errors during API requests."""
41
+
42
+
43
+ class TimeoutE(Exception):
44
+ """Raised for timeout errors during API requests."""
45
+
46
+ class FailedToGenerateResponseError(Exception):
47
+
48
+ """Provider failed to fetch response"""
49
+ class AllProvidersFailure(Exception):
50
+ """None of the providers generated response successfully"""
51
+
52
+ pass
53
  class WEBS:
54
  """webscout class to get search results from duckduckgo.com."""
55