python的俳句错误消息
haiku-errors的Python项目详细描述
- 没有错误就是没有奋斗和快乐的生活
- ~(布莱恩·波特)
俳句错误
只要import haiku_errors在没有异常的情况下打印俳句 处理:
$ python -c "import haiku_errors; raise SystemError"Traceback (most recent call last): File "<string>", line 1, in <module> SystemError Something has gone wrong. Format your disk, because this Error won't help you. ~ (Cheryl Walker)
一个没有显式raise:
$ python3 -c "import haiku_errors; f = lambda: f(); f()"Traceback (most recent call last): File "<string>", line 1, in <module> LookupError The ten thousand things, How long do any persist? Netscape, too, has gone. ~ (Jason Willoughby)
要安装,请运行:
$ pip install haiku-errors