File: exceptions.py

package info (click to toggle)
python-toonapi 0.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 224 kB
  • sloc: python: 708; xml: 325; makefile: 97
file content (17 lines) | stat: -rw-r--r-- 380 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""Exceptions for the Quby ToonAPI."""


class ToonError(Exception):
    """Generic ToonAPI exception."""


class ToonConnectionError(ToonError):
    """ToonAPI connection exception."""


class ToonConnectionTimeoutError(ToonConnectionError):
    """ToonAPI connection timeout exception."""


class ToonRateLimitError(ToonConnectionError):
    """ToonAPI Rate Limit exception."""