mirror of
https://github.com/ihabunek/toot
synced 2024-12-23 15:37:47 +01:00
15 lines
358 B
Python
15 lines
358 B
Python
|
class ApiError(Exception):
|
||
|
"""Raised when an API request fails for whatever reason."""
|
||
|
|
||
|
|
||
|
class NotFoundError(ApiError):
|
||
|
"""Raised when an API requests returns a 404."""
|
||
|
|
||
|
|
||
|
class AuthenticationError(ApiError):
|
||
|
"""Raised when login fails."""
|
||
|
|
||
|
|
||
|
class ConsoleError(Exception):
|
||
|
"""Raised when an error occurs which needs to be show to the user."""
|