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
|
|
|
|
"""
|
|
|
|
|
2022-05-11 11:11:39 +08:00
|
|
|
from .command import CommandParseError, CommandQuotationMarkError
|
|
|
|
|
2021-09-09 23:54:03 +08:00
|
|
|
__all__ = ['TexturesError',
|
|
|
|
'LanguageError',
|
2021-10-31 23:26:32 +08:00
|
|
|
'CommandError',
|
2022-05-11 11:11:39 +08:00
|
|
|
'CommandParseError',
|
|
|
|
'CommandQuotationMarkError',
|
2021-09-09 23:54:03 +08:00
|
|
|
'TestError']
|
|
|
|
|
2021-09-02 22:47:10 +08:00
|
|
|
|
|
|
|
class Error(Exception):
|
|
|
|
"""基础 Exception"""
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class TexturesError(Error):
|
2021-09-22 06:21:48 +08:00
|
|
|
"""材质相关 error"""
|
|
|
|
pass
|
2021-09-02 22:47:10 +08:00
|
|
|
|
|
|
|
|
2021-10-31 23:26:32 +08:00
|
|
|
class CommandError(Error):
|
|
|
|
"""命令解析相关 error"""
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2021-09-02 22:47:10 +08:00
|
|
|
class LanguageError(Error):
|
2022-05-11 11:11:39 +08:00
|
|
|
"""语言相关 error"""
|
2021-09-22 06:21:48 +08:00
|
|
|
pass
|
2021-09-09 23:54:03 +08:00
|
|
|
|
|
|
|
|
|
|
|
class TestError(Error):
|
2021-09-22 06:21:48 +08:00
|
|
|
"""就像名字一样 用于测试的 error"""
|
2021-09-09 23:54:03 +08:00
|
|
|
pass
|