2022-06-29 13:45:25 +08:00
|
|
|
|
# -------------------------------
|
|
|
|
|
# Difficult Rocket
|
2023-01-20 14:08:12 +08:00
|
|
|
|
# Copyright © 2020-2023 by shenjackyuanjie 3695888@qq.com
|
2022-06-29 13:45:25 +08:00
|
|
|
|
# All rights reserved
|
|
|
|
|
# -------------------------------
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
writen by shenjackyuanjie
|
|
|
|
|
mail: 3695888@qq.com
|
|
|
|
|
github: @shenjackyuanjie
|
|
|
|
|
gitee: @shenjackyuanjie
|
|
|
|
|
"""
|
2023-01-05 21:36:47 +08:00
|
|
|
|
from Difficult_Rocket.exception import BaseError, BaseRuntimeError
|
2022-06-29 13:45:25 +08:00
|
|
|
|
|
|
|
|
|
__all__ = [
|
|
|
|
|
'NoMoreJson5',
|
|
|
|
|
'Nope418ImATeapot',
|
|
|
|
|
'ThinkError',
|
|
|
|
|
'BrainError',
|
2023-01-05 21:36:47 +08:00
|
|
|
|
'BigBrainError',
|
|
|
|
|
'GrammarError'
|
2022-06-29 13:45:25 +08:00
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class NoMoreJson5(BaseError):
|
|
|
|
|
"""说什么我也不用Json5了!"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Nope418ImATeapot(BaseError):
|
|
|
|
|
"""我只是个茶壶而已,我不能煮咖啡!"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ThinkError(BaseError):
|
|
|
|
|
"""进不去,进不去,怎么想都进不去!"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class BrainError(BaseError):
|
|
|
|
|
"""clever brain.png"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class BigBrainError(BrainError):
|
|
|
|
|
"""bigbrain.png"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class BrainTimeoutError(BrainError, ThinkError):
|
|
|
|
|
"""脑子····超时·······················啦!"""
|
2023-01-05 21:36:47 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class GrammarError(BaseRuntimeError):
|
|
|
|
|
"""嘿NMD语法!"""
|