📜  python raise TypeError - Python 代码示例

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

代码示例4
class MyError(TypeError):
    pass

raise MyError('An error happened')