How to use the twitchio.errors.TwitchIOBException function in twitchio

To help you get started, we’ve selected a few twitchio examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TwitchIO / TwitchIO / twitchio / errors.py View on Github external
'ClientError',
    'InvalidContent',
    'HTTPException',
    'Unauthorized',
)


class TwitchIOBException(Exception):
    """Base exception class for TwitchIO."""


class AuthenticationError(TwitchIOBException):
    """Authentication error."""


class WSConnectionFailure(TwitchIOBException):
    """Exception raised when WS fails to connect."""


class ClientError(TwitchIOBException):
    pass


class InvalidContent(TwitchIOBException):
    pass


class HTTPException(TwitchIOBException):
    pass


class EchoMessageWarning(TwitchIOBException):
github TwitchIO / TwitchIO / twitchio / errors.py View on Github external
"""Base exception class for TwitchIO."""


class AuthenticationError(TwitchIOBException):
    """Authentication error."""


class WSConnectionFailure(TwitchIOBException):
    """Exception raised when WS fails to connect."""


class ClientError(TwitchIOBException):
    pass


class InvalidContent(TwitchIOBException):
    pass


class HTTPException(TwitchIOBException):
    pass


class EchoMessageWarning(TwitchIOBException):
    """Exception raised when a bot user tries to repsond to it's own message."""
    pass


class Unauthorized(HTTPException):
    pass
github TwitchIO / TwitchIO / twitchio / errors.py View on Github external
"""Authentication error."""


class WSConnectionFailure(TwitchIOBException):
    """Exception raised when WS fails to connect."""


class ClientError(TwitchIOBException):
    pass


class InvalidContent(TwitchIOBException):
    pass


class HTTPException(TwitchIOBException):
    pass


class EchoMessageWarning(TwitchIOBException):
    """Exception raised when a bot user tries to repsond to it's own message."""
    pass


class Unauthorized(HTTPException):
    pass
github TwitchIO / TwitchIO / twitchio / errors.py View on Github external
__all__ = (
    'TwitchIOBException',
    'AuthenticationError',
    'WSConnectionFailure',
    'ClientError',
    'InvalidContent',
    'HTTPException',
    'Unauthorized',
)


class TwitchIOBException(Exception):
    """Base exception class for TwitchIO."""


class AuthenticationError(TwitchIOBException):
    """Authentication error."""


class WSConnectionFailure(TwitchIOBException):
    """Exception raised when WS fails to connect."""


class ClientError(TwitchIOBException):
    pass


class InvalidContent(TwitchIOBException):
    pass


class HTTPException(TwitchIOBException):
github TwitchIO / TwitchIO / twitchio / errors.py View on Github external
"""Exception raised when WS fails to connect."""


class ClientError(TwitchIOBException):
    pass


class InvalidContent(TwitchIOBException):
    pass


class HTTPException(TwitchIOBException):
    pass


class EchoMessageWarning(TwitchIOBException):
    """Exception raised when a bot user tries to repsond to it's own message."""
    pass


class Unauthorized(HTTPException):
    pass
github TwitchIO / TwitchIO / twitchio / errors.py View on Github external
)


class TwitchIOBException(Exception):
    """Base exception class for TwitchIO."""


class AuthenticationError(TwitchIOBException):
    """Authentication error."""


class WSConnectionFailure(TwitchIOBException):
    """Exception raised when WS fails to connect."""


class ClientError(TwitchIOBException):
    pass


class InvalidContent(TwitchIOBException):
    pass


class HTTPException(TwitchIOBException):
    pass


class EchoMessageWarning(TwitchIOBException):
    """Exception raised when a bot user tries to repsond to it's own message."""
    pass
github TwitchIO / TwitchIO / twitchio / ext / commands / errors.py View on Github external
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
"""

__all__ = ('CommandError', 'CommandNotFound', 'MissingRequiredArgument', 'BadArgument', 'CheckFailure',)


from twitchio.errors import TwitchIOBException


class CommandError(TwitchIOBException):
    """Base Exception for errors raised by commands."""
    pass


class CommandNotFound(CommandError):
    """Exception raised when a command is not found."""
    pass


class CheckFailure(CommandError):
    """Exception raised when a check fails."""


class MissingRequiredArgument(CommandError):
    """Exception raised when a required argument is not passed to a command.