Project

General

Profile

Improvement #2048

Add more TransactionUtil and ThreadUtil signatures for better exception handling

Added by Henning Blohm about 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
16.11.2019
Due date:
% Done:

0%

Estimated time:
origin:

Description

In many cases, wrapping execution for transaction boundary of clean thread context requires ugly handling of Callable exceptions. To some extend ThreadUtil.confine reduces noise, but more can be achieved for the most typical lambda use by introducing a ThrowingSupplier and ThrowingRunnable that have a generic and so inferrable exception use.

Also available in: Atom PDF