JobSpy/jobspy/exception.py

37 lines
995 B
Python
Raw Normal View History

"""
2025-02-21 12:14:55 -08:00
jobspy.jobboard.exceptions
~~~~~~~~~~~~~~~~~~~
This module contains the set of Scrapers' exceptions.
"""
class LinkedInException(Exception):
def __init__(self, message=None):
super().__init__(message or "An error occurred with LinkedIn")
class IndeedException(Exception):
def __init__(self, message=None):
super().__init__(message or "An error occurred with Indeed")
class ZipRecruiterException(Exception):
def __init__(self, message=None):
super().__init__(message or "An error occurred with ZipRecruiter")
2023-10-30 17:57:36 -07:00
class GlassdoorException(Exception):
def __init__(self, message=None):
super().__init__(message or "An error occurred with Glassdoor")
2024-10-24 13:19:40 -07:00
class GoogleJobsException(Exception):
def __init__(self, message=None):
super().__init__(message or "An error occurred with Google Jobs")
2025-02-21 03:31:29 -08:00
2025-02-21 10:29:28 -08:00
2025-02-21 03:31:29 -08:00
class BaytException(Exception):
def __init__(self, message=None):
super().__init__(message or "An error occurred with Bayt")