-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
exceptions.py
38 lines (20 loc) · 1019 Bytes
/
exceptions.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
class TwitterDataExtractorException(Exception):
"""Base exception for Twitter Data Extractor"""
class TwitterAPISetupError(TwitterDataExtractorException):
"""Setup error for Twitter API"""
class MissingUsernameParameterError(TwitterDataExtractorException):
"""Missing username for user extractor"""
class UserNotFoundError(TwitterDataExtractorException):
"""User with given handle could not be found"""
class UnsupportedExtractorError(TwitterDataExtractorException):
"""Unsupported extractor"""
class PrivateAccountError(TwitterDataExtractorException):
"""Private account error"""
class UnsupportedConfigFileError(TwitterDataExtractorException):
"""Unsupported config file error"""
class UnsupportedReporterError(TwitterDataExtractorException):
"""Unsupported reporter error"""
class MissingShareMailError(TwitterDataExtractorException):
"""Missing share mail error"""
class ExtractorDatabaseError(TwitterDataExtractorException):
"""Database operation error"""