mirror of
https://github.com/TriM-Organization/Musicreater.git
synced 2026-01-24 20:51:54 +00:00
下次要建一个dev分支到仓库里啊……
This commit is contained in:
@@ -18,11 +18,11 @@ Terms & Conditions: License.md in the root directory
|
|||||||
|
|
||||||
|
|
||||||
class MSCTBaseException(Exception):
|
class MSCTBaseException(Exception):
|
||||||
"""音·创库版本的所有错误均继承于此"""
|
"""音·创 的所有错误均继承于此"""
|
||||||
|
|
||||||
def __init__(self, *args):
|
def __init__(self, *args):
|
||||||
"""音·创库版本的所有错误均继承于此"""
|
"""音·创 的所有错误均继承于此"""
|
||||||
super().__init__(*args)
|
super().__init__("音·创", *args)
|
||||||
|
|
||||||
def meow(
|
def meow(
|
||||||
self,
|
self,
|
||||||
@@ -35,10 +35,10 @@ class MSCTBaseException(Exception):
|
|||||||
|
|
||||||
|
|
||||||
class MidiFormatException(MSCTBaseException):
|
class MidiFormatException(MSCTBaseException):
|
||||||
"""音·创库版本的所有MIDI格式错误均继承于此"""
|
"""音·创 的所有MIDI格式错误均继承于此"""
|
||||||
|
|
||||||
def __init__(self, *args):
|
def __init__(self, *args):
|
||||||
"""音·创库版本的所有MIDI格式错误均继承于此"""
|
"""音·创 的所有MIDI格式错误均继承于此"""
|
||||||
super().__init__("MIDI 格式错误", *args)
|
super().__init__("MIDI 格式错误", *args)
|
||||||
|
|
||||||
|
|
||||||
@@ -59,7 +59,7 @@ class MidiDestroyedError(MSCTBaseException):
|
|||||||
# 此错误在本版本内已经不再使用
|
# 此错误在本版本内已经不再使用
|
||||||
|
|
||||||
|
|
||||||
class CommandFormatError(RuntimeError):
|
class CommandFormatError(MSCTBaseException, RuntimeError):
|
||||||
"""指令格式与目标格式不匹配而引起的错误"""
|
"""指令格式与目标格式不匹配而引起的错误"""
|
||||||
|
|
||||||
def __init__(self, *args):
|
def __init__(self, *args):
|
||||||
@@ -113,6 +113,7 @@ class NoteOnOffMismatchError(MidiFormatException):
|
|||||||
"""音符开音和停止不匹配的错误"""
|
"""音符开音和停止不匹配的错误"""
|
||||||
super().__init__("音符不匹配", *args)
|
super().__init__("音符不匹配", *args)
|
||||||
|
|
||||||
|
|
||||||
class LyricMismatchError(MSCTBaseException):
|
class LyricMismatchError(MSCTBaseException):
|
||||||
"""歌词匹配解析错误"""
|
"""歌词匹配解析错误"""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user