Module twitchpy.errors

Classes

class AppTokenError (message)
Expand source code
class AppTokenError(TwitchPyBException):
    """
    Exception raised when an error trying to get an app token happens
    """

Exception raised when an error trying to get an app token happens

Ancestors

class ClientError (message)
Expand source code
class ClientError(TwitchPyBException):
    """
    Exception raised when a bad request is made by a client
    """

Exception raised when a bad request is made by a client

Ancestors

class TwitchPyBException (message)
Expand source code
class TwitchPyBException(Exception):
    """
    Base exception class for TwitchPy
    """

    def __init__(self, message):
        super().__init__(message)

Base exception class for TwitchPy

Ancestors

  • builtins.Exception
  • builtins.BaseException

Subclasses

class UserTokenError (message)
Expand source code
class UserTokenError(TwitchPyBException):
    """
    Exception raised when a function that requires an user token is called without an user token
    """

Exception raised when a function that requires an user token is called without an user token

Ancestors