ops
This commit is contained in:
0
lib/cloudscraper/exceptions/__init__.py
Normal file
0
lib/cloudscraper/exceptions/__init__.py
Normal file
31
lib/cloudscraper/exceptions/cloudflare_exceptions.py
Normal file
31
lib/cloudscraper/exceptions/cloudflare_exceptions.py
Normal file
@@ -0,0 +1,31 @@
|
||||
# ------------------------------------------------------------------------------- #
|
||||
|
||||
|
||||
class Cloudflare_Loop_Protection(Exception):
|
||||
"""
|
||||
Raise error for recursive depth protection
|
||||
"""
|
||||
|
||||
|
||||
class Cloudflare_Block(Exception):
|
||||
"""
|
||||
Raise error for Cloudflare 1020 block
|
||||
"""
|
||||
|
||||
|
||||
class Cloudflare_Error_IUAM(Exception):
|
||||
"""
|
||||
Raise error for problem extracting IUAM paramters from Cloudflare payload
|
||||
"""
|
||||
|
||||
|
||||
class Cloudflare_Error_reCaptcha(Exception):
|
||||
"""
|
||||
Raise error for problem extracting reCaptcha paramters from Cloudflare payload
|
||||
"""
|
||||
|
||||
|
||||
class Cloudflare_reCaptcha_Provider(Exception):
|
||||
"""
|
||||
Raise error for reCaptcha from Cloudflare, no provider loaded.
|
||||
"""
|
||||
49
lib/cloudscraper/exceptions/reCaptcha_exceptions.py
Normal file
49
lib/cloudscraper/exceptions/reCaptcha_exceptions.py
Normal file
@@ -0,0 +1,49 @@
|
||||
# ------------------------------------------------------------------------------- #
|
||||
|
||||
|
||||
class reCaptcha_Service_Unavailable(Exception):
|
||||
"""
|
||||
Raise error for external services that cannot be reached
|
||||
"""
|
||||
|
||||
|
||||
class reCaptcha_Error_From_API(Exception):
|
||||
"""
|
||||
Raise error for error from API response.
|
||||
"""
|
||||
|
||||
|
||||
class reCaptcha_Account_Error(Exception):
|
||||
"""
|
||||
Raise error for reCaptcha provider account problem.
|
||||
"""
|
||||
|
||||
|
||||
class reCaptcha_Timeout(Exception):
|
||||
"""
|
||||
Raise error for reCaptcha provider taking too long.
|
||||
"""
|
||||
|
||||
|
||||
class reCaptcha_Bad_Parameter(NotImplementedError):
|
||||
"""
|
||||
Raise error for bad or missing Parameter.
|
||||
"""
|
||||
|
||||
|
||||
class reCaptcha_Bad_Job_ID(Exception):
|
||||
"""
|
||||
Raise error for invalid job id.
|
||||
"""
|
||||
|
||||
|
||||
class reCaptcha_Report_Error(Exception):
|
||||
"""
|
||||
Raise error for reCaptcha provider unable to report bad solve.
|
||||
"""
|
||||
|
||||
|
||||
class reCaptcha_Import_Error(Exception):
|
||||
"""
|
||||
Raise error for reCaptcha, cannot import a module.
|
||||
"""
|
||||
Reference in New Issue
Block a user