add kakao exception module
git-svn-id: svn://192.168.0.12/source@295 8346c931-da38-4b9b-9d4c-e48b93cbd075
This commit is contained in:
1375
WebBasedCrawler/kakao/kakaocrawl_backup.py
Normal file
1375
WebBasedCrawler/kakao/kakaocrawl_backup.py
Normal file
File diff suppressed because it is too large
Load Diff
16
WebBasedCrawler/kakao/kakaoexception.py
Normal file
16
WebBasedCrawler/kakao/kakaoexception.py
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# 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)
|
||||||
Reference in New Issue
Block a user