mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-10 15:57:53 +00:00
Move various system functionality to system.py
This commit is contained in:
parent
49b4e4c1ef
commit
a079db8be0
8 changed files with 182 additions and 102 deletions
36
src/pluralkit/errors.py
Normal file
36
src/pluralkit/errors.py
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
class PluralKitError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class ExistingSystemError(PluralKitError):
|
||||
pass
|
||||
|
||||
|
||||
class DescriptionTooLongError(PluralKitError):
|
||||
pass
|
||||
|
||||
|
||||
class TagTooLongError(PluralKitError):
|
||||
pass
|
||||
|
||||
|
||||
class TagTooLongWithMembersError(PluralKitError):
|
||||
def __init__(self, member_names):
|
||||
self.member_names = member_names
|
||||
|
||||
|
||||
class CustomEmojiError(PluralKitError):
|
||||
pass
|
||||
|
||||
|
||||
class InvalidAvatarURLError(PluralKitError):
|
||||
pass
|
||||
|
||||
|
||||
class AccountAlreadyLinkedError(PluralKitError):
|
||||
def __init__(self, existing_system):
|
||||
self.existing_system = existing_system
|
||||
|
||||
|
||||
class UnlinkingLastAccountError(PluralKitError):
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue