TikTokApi.exceptions

View Source
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)


class TikTokNotAvailableError(Exception):
    def __init__(self, message="The requested object is not available in this region"):
        self.message = message
        super().__init__(self.message)
#   class TikTokCaptchaError(builtins.Exception):
View Source
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)

Common base class for all non-exit exceptions.

#   TikTokCaptchaError( message='TikTok blocks this request displaying a Captcha \nTip: Consider using a proxy or a custom_verifyFp as method parameters' )
View Source
    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)
Inherited Members
builtins.BaseException
with_traceback
args
#   class TikTokNotFoundError(builtins.Exception):
View Source
class TikTokNotFoundError(Exception):
    def __init__(self, message="The requested object does not exists"):
        self.message = message
        super().__init__(self.message)

Common base class for all non-exit exceptions.

#   TikTokNotFoundError(message='The requested object does not exists')
View Source
    def __init__(self, message="The requested object does not exists"):
        self.message = message
        super().__init__(self.message)
Inherited Members
builtins.BaseException
with_traceback
args
#   class EmptyResponseError(builtins.Exception):
View Source
class EmptyResponseError(Exception):
    def __init__(self, message="TikTok sent no data back"):
        self.message = message
        super().__init__(self.message)

Common base class for all non-exit exceptions.

#   EmptyResponseError(message='TikTok sent no data back')
View Source
    def __init__(self, message="TikTok sent no data back"):
        self.message = message
        super().__init__(self.message)
Inherited Members
builtins.BaseException
with_traceback
args
#   class JSONDecodeFailure(builtins.Exception):
View Source
class JSONDecodeFailure(Exception):
    def __init__(self, message="TikTok sent invalid JSON back"):
        self.message = message
        super().__init__(self.message)

Common base class for all non-exit exceptions.

#   JSONDecodeFailure(message='TikTok sent invalid JSON back')
View Source
    def __init__(self, message="TikTok sent invalid JSON back"):
        self.message = message
        super().__init__(self.message)
Inherited Members
builtins.BaseException
with_traceback
args
#   class TikTokNotAvailableError(builtins.Exception):
View Source
class TikTokNotAvailableError(Exception):
    def __init__(self, message="The requested object is not available in this region"):
        self.message = message
        super().__init__(self.message)

Common base class for all non-exit exceptions.

#   TikTokNotAvailableError(message='The requested object is not available in this region')
View Source
    def __init__(self, message="The requested object is not available in this region"):
        self.message = message
        super().__init__(self.message)
Inherited Members
builtins.BaseException
with_traceback
args