17 lines
525 B
Python
17 lines
525 B
Python
# Basic exception
|
|
class KakaoCrawlerException(Exception):
|
|
def __init__(self, *args, **kwargs):
|
|
Exception.__init__(self, *args, **kwargs)
|
|
|
|
|
|
# exception for no element
|
|
class NotFoundElementError(KakaoCrawlerException):
|
|
def __init__(self, *args, **kwargs):
|
|
KakaoCrawlerException.__init__(self, *args, **kwargs)
|
|
|
|
|
|
# exception for no data
|
|
class NotFoundDataError(KakaoCrawlerException):
|
|
def __init__(self, *args, **kwargs):
|
|
KakaoCrawlerException.__init__(self, *args, **kwargs)
|