gqylpy / exceptionx

The `exceptionx` is a flexible and convenient Python exception handling library that allows you to dynamically create exception classes and provides various exception handling mechanisms.
http://gqylpy.com
MIT License
118 stars 1 forks source link

4.1 #6

Closed 2018-11-27 closed 3 months ago

2018-11-27 commented 3 months ago
  1. TryExcept and TryContext now support handling exceptions based on exception message strings and have added the functionality to negate exception types.
  2. Both @Retry and @Retry() are now supported as valid syntax, as well as TryExcept.
  3. Fixed an issue: The retry counter in Retry incorrectly started from zero. #4
  4. Fixed an issue: The stacklevel positioning of the logger object was sometimes inaccurate. #5
  5. Optimized exception output for Retry, adding display for limit_time and event.
  6. Fixed a serious issue in Retry where exception information might be "spammed" output.
  7. Added type checking for the parameter etype.
  8. The internal default value for retry events has been changed to None.
  9. Updated annotations, comments, and documentation files for the above changes.

  10. TryExceptTryContext 现在支持按异常消息字符串处理异常,并新增了异常类型取反的功能。
  11. 同时支持 @Retry@Retry() 作为有效语法,亦 TryExcept
  12. 修复问题:Retry 中重试计数器错误地从零开始。 #4
  13. 修复问题:日志记录器对象 stacklevel 定位有时不准确。 #5
  14. 优化了 Retry 的异常输出,增加了对 limit_timeevent 显示。
  15. 修复了 Retry 中可能会 “疯狂输出” 异常信息的严重问题。
  16. 添加对参数 etype 的类型校验。
  17. 重试事件的内部默认值修改为 None
  18. 针对以上改动更新注解,注释及自述文件。