python raise

raise 后面错误类型的能自定义吗?
如果能,请问是怎么搞的。
谢谢。

可参考:https://blog.csdn.net/weixin_45353453/article/details/120412064