Move various system functionality to system.py

This commit is contained in:
Ske 2018-09-09 20:38:57 +02:00
parent 49b4e4c1ef
commit a079db8be0
8 changed files with 182 additions and 102 deletions

36
src/pluralkit/errors.py Normal file
View 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