TikTokApi.exceptions

View Source
class TikTokException(Exception):
    """Generic exception that all other TikTok errors are children of."""

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)


class CaptchaException(TikTokException):
    """TikTok is showing captcha"""


class NotFoundException(TikTokException):
    """TikTok indicated that this object does not exist."""


class EmptyResponseException(TikTokException):
    """TikTok sent back an empty response."""


class SoundRemovedException(TikTokException):
    """This TikTok sound has no id from being removed by TikTok."""


class InvalidJSONException(TikTokException):
    """TikTok returned invalid JSON."""


class NotAvailableException(TikTokException):
    """The requested object is not available in this region."""
#   class TikTokException(builtins.Exception):
View Source
class TikTokException(Exception):
    """Generic exception that all other TikTok errors are children of."""

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

Generic exception that all other TikTok errors are children of.

#   TikTokException(*args, **kwargs)
View Source
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
Inherited Members
builtins.BaseException
with_traceback
args
#   class CaptchaException(TikTokException):
View Source
class CaptchaException(TikTokException):
    """TikTok is showing captcha"""

TikTok is showing captcha

Inherited Members
TikTokException
TikTokException
builtins.BaseException
with_traceback
args
#   class NotFoundException(TikTokException):
View Source
class NotFoundException(TikTokException):
    """TikTok indicated that this object does not exist."""

TikTok indicated that this object does not exist.

Inherited Members
TikTokException
TikTokException
builtins.BaseException
with_traceback
args
#   class EmptyResponseException(TikTokException):
View Source
class EmptyResponseException(TikTokException):
    """TikTok sent back an empty response."""

TikTok sent back an empty response.

Inherited Members
TikTokException
TikTokException
builtins.BaseException
with_traceback
args
#   class SoundRemovedException(TikTokException):
View Source
class SoundRemovedException(TikTokException):
    """This TikTok sound has no id from being removed by TikTok."""

This TikTok sound has no id from being removed by TikTok.

Inherited Members
TikTokException
TikTokException
builtins.BaseException
with_traceback
args
#   class InvalidJSONException(TikTokException):
View Source
class InvalidJSONException(TikTokException):
    """TikTok returned invalid JSON."""

TikTok returned invalid JSON.

Inherited Members
TikTokException
TikTokException
builtins.BaseException
with_traceback
args
#   class NotAvailableException(TikTokException):
View Source
class NotAvailableException(TikTokException):
    """The requested object is not available in this region."""

The requested object is not available in this region.

Inherited Members
TikTokException
TikTokException
builtins.BaseException
with_traceback
args