mirror of
https://github.com/TriM-Organization/Musicreater.git
synced 2026-04-25 18:56:06 +00:00
更高效的算法管理与兼容性和代码格式更新,详见样例代码;同时新增实验算法,在其中尝试下次更新的内容
This commit is contained in:
@@ -17,8 +17,6 @@ Terms & Conditions: License.md in the root directory
|
||||
# 若需转载或借鉴 许可声明请查看仓库目录下的 License.md
|
||||
|
||||
|
||||
|
||||
|
||||
class MSCTBaseException(Exception):
|
||||
"""音·创库版本的所有错误均继承于此"""
|
||||
|
||||
@@ -27,7 +25,7 @@ class MSCTBaseException(Exception):
|
||||
super().__init__(*args)
|
||||
|
||||
def miao(
|
||||
self,
|
||||
self,
|
||||
):
|
||||
for i in self.args:
|
||||
print(i + "喵!")
|
||||
@@ -52,6 +50,14 @@ class MidiDestroyedError(MSCTBaseException):
|
||||
super().__init__("MIDI文件损坏:无法读取MIDI文件", *args)
|
||||
|
||||
|
||||
class MidiUnboundError(MSCTBaseException):
|
||||
"""未定义Midi对象"""
|
||||
|
||||
def __init__(self, *args):
|
||||
"""未绑定Midi对象"""
|
||||
super().__init__("未定义MidiFile对象:你甚至没有对象就想要生孩子?", *args)
|
||||
|
||||
|
||||
class CommandFormatError(RuntimeError):
|
||||
"""指令格式与目标格式不匹配而引起的错误"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user