File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
core/src/main/scala/com/avsystem/commons Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -466,7 +466,7 @@ object SharedExtensionsUtils extends SharedExtensions {
466
466
* Apply side-effect only if Try is a failure. The provided `action` function will be called with the
467
467
* throwable from the failure case, allowing you to perform operations like logging or error handling.
468
468
*
469
- * Any exceptions thrown by the `action` function are caught and ignored, ensuring that this method
469
+ * Non-fatal exceptions thrown by the `action` function are caught and ignored, ensuring that this method
470
470
* always returns the original Try instance regardless of what happens in the action.
471
471
*
472
472
* Don't use .failed projection, because it unnecessarily creates Exception in case of Success,
@@ -477,7 +477,7 @@ object SharedExtensionsUtils extends SharedExtensions {
477
477
case Failure (throwable) =>
478
478
try action(throwable)
479
479
catch {
480
- case NonFatal (_) => // ignore any exceptions thrown by the action
480
+ case NonFatal (_) => // ignore non-fatal exceptions thrown by the action
481
481
}
482
482
tr
483
483
You can’t perform that action at this time.
0 commit comments