Difficult-Rocket/Difficult_Rocket/api/Exp/__init__.py

35 lines
640 B
Python
Raw Normal View History

2021-09-08 23:38:34 +08:00
# -------------------------------
# Difficult Rocket
2021-12-26 23:06:03 +08:00
# Copyright © 2021-2022 by shenjackyuanjie
2021-09-08 23:38:34 +08:00
# All rights reserved
# -------------------------------
2021-09-02 22:47:10 +08:00
"""
writen by shenjackyuanjie
mail: 3695888@qq.com
github: @shenjackyuanjie
gitee: @shenjackyuanjie
"""
2021-09-09 23:54:03 +08:00
__all__ = ['TexturesError',
'LanguageError',
'TestError']
2021-09-02 22:47:10 +08:00
class Error(Exception):
"""基础 Exception"""
2022-06-04 11:08:30 +08:00
def __bool__(self):
return False
2021-09-02 22:47:10 +08:00
class TexturesError(Error):
"""材质相关 error"""
2021-09-02 22:47:10 +08:00
class LanguageError(Error):
2022-05-11 11:11:39 +08:00
"""语言相关 error"""
2021-09-09 23:54:03 +08:00
class TestError(Error):
"""就像名字一样 用于测试的 error"""