📜  python 自定义错误 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:12.185000             🧑  作者: Mango

代码示例1
class MyException(Exception):
  """You can put code here"""
  pass

class MyOtherException(MyException):
  """You can also put code here"""
  pass