Module TikTokApi.exceptions
Expand source code
class TikTokCaptchaError(Exception):
def __init__(
self,
message="TikTok blocks this request displaying a Captcha \nTip: Consider using a proxy or a custom_verifyFp as method parameters",
):
self.message = message
super().__init__(self.message)
class TikTokNotFoundError(Exception):
def __init__(self, message="The requested object does not exists"):
self.message = message
super().__init__(self.message)
class EmptyResponseError(Exception):
def __init__(self, message="TikTok sent no data back"):
self.message = message
super().__init__(self.message)
class JSONDecodeFailure(Exception):
def __init__(self, message="TikTok sent invalid JSON back"):
self.message = message
super().__init__(self.message)
Classes
class EmptyResponseError (message='TikTok sent no data back')
-
Common base class for all non-exit exceptions.
Expand source code
class EmptyResponseError(Exception): def __init__(self, message="TikTok sent no data back"): self.message = message super().__init__(self.message)
Ancestors
- builtins.Exception
- builtins.BaseException
class JSONDecodeFailure (message='TikTok sent invalid JSON back')
-
Common base class for all non-exit exceptions.
Expand source code
class JSONDecodeFailure(Exception): def __init__(self, message="TikTok sent invalid JSON back"): self.message = message super().__init__(self.message)
Ancestors
- builtins.Exception
- builtins.BaseException
class TikTokCaptchaError (message='TikTok blocks this request displaying a Captcha \nTip: Consider using a proxy or a custom_verifyFp as method parameters')
-
Common base class for all non-exit exceptions.
Expand source code
class TikTokCaptchaError(Exception): def __init__( self, message="TikTok blocks this request displaying a Captcha \nTip: Consider using a proxy or a custom_verifyFp as method parameters", ): self.message = message super().__init__(self.message)
Ancestors
- builtins.Exception
- builtins.BaseException
class TikTokNotFoundError (message='The requested object does not exists')
-
Common base class for all non-exit exceptions.
Expand source code
class TikTokNotFoundError(Exception): def __init__(self, message="The requested object does not exists"): self.message = message super().__init__(self.message)
Ancestors
- builtins.Exception
- builtins.BaseException