StarRailDamageCal/starrail_damage_cal/exception.py

31 lines
581 B
Python
Raw Normal View History

2023-10-30 06:31:15 +00:00
class UidNotfoundError(Exception):
def __init__(self, uid: str):
self.uid = uid
def __str__(self):
return repr(self.uid)
class CharNameError(Exception):
def __init__(self, char_name: str):
self.char_name = char_name
def __str__(self):
return repr(self.char_name)
class MihomoRequestError(Exception):
pass
class NotInCharacterShowcaseError(Exception):
pass
class CharacterShowcaseNotOpenError(Exception):
def __init__(self, uid: str):
self.uid = uid
def __str__(self):
return repr(self.uid)