forked from ntoskrnl4/arbys
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexceptions.py
36 lines (22 loc) · 821 Bytes
/
exceptions.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
"""Exceptions that are used in the framework"""
class BaseFrameworkError(Exception):
"""Base exception for all custom errors."""
pass
class UserBotError(BaseFrameworkError):
"""Raised when framework is run with a user account."""
pass
class HandlerError(BaseFrameworkError):
"""Raised when there is a problem with a handler function."""
pass
class MusicException(BaseFrameworkError):
"""Class for all music exceptions"""
pass
class AmbiguousChannelError(MusicException):
"""Raised when it is ambiguous what voice channel is targeted."""
pass
class UnknownChannelError(MusicException):
"""Raised when the client does not know of any such voice channel."""
pass
class NotConnectedException(MusicException):
"""Raised when an operation is performed but the voice channel is not connected."""
pass