Releases: gqylpy/exceptionx
Releases · gqylpy/exceptionx
4.1.4
4.1.3
- Fix the issue of
time2second
matching empty strings. - Optimize
time2second
regular expression matching to ignore case. - Improve the description of two exception messages to make the semantics more accurate.
- 修复
time2second
匹配空字符串的问题。 - 优化
time2second
正则匹配时忽略大小写。 - 改进两个异常描述信息,使语义更准确。
4.1.2
- Optimize the implementation of the inner function
time2second
. - Update the example code to provide examples in a recommended way.
- 优化内部函数
time2second
的实现。 - 更新示例代码以更推荐的方式提供示例。
4.1.1
- The time parameter in
Retry
supports passing in the format of unit time (e.g., "1h2m3s"). - Optimize a small amount of other code.
Retry
中的时间参数支持以单位时间(如 "1h2m3s")的格式传递。- 优化其它少量代码。
4.1
TryExcept
andTryContext
now support handling exceptions based on exception message strings and have added the functionality to negate exception types.- Both
@Retry
and@Retry()
are now supported as valid syntax, as well asTryExcept
. - Fixed an issue: The retry counter in
Retry
incorrectly started from zero. #4 - Fixed an issue: The
stacklevel
positioning of the logger object was sometimes inaccurate. #5 - Optimized exception output for
Retry
, adding display forlimit_time
andevent
. - Fixed a serious issue in
Retry
where exception information might be "spammed" output. - Added type checking for the parameter
etype
. - The internal default value for retry events has been changed to
None
. - Updated annotations, comments, and documentation files for the above changes.
4.0
- This update mainly focuses on extensive functional enhancements and optimizations to the
Retry
decorator. - The
Retry
decorator now subtracts the runtime of the program from the interval time before each retry. - The
Retry
decorator by removing the type conversion for parameterscount
andsleep
. - The
Retry
decorator adds a retry mechanism based on total execution time. #1 - The
Retry
decorator adds a retry mechanism based on external event. #2 - The
Retry
decorator Adds a retry mechanism based on exception message. #3 - Completely remove the deprecated decorators
TryExceptAsync
andRetryAsync
. - Add more detailed descriptions of internal exceptions.
- Refactor module descriptions and update the readme file.