mirror of
https://github.com/corda/corda.git
synced 2025-03-23 20:45:23 +00:00
Apps may depend on the previous behaviour of catching Throwable rather than just Exception. Better to not risk this break and instead provide a helper to throw Errors. Also using Consumer to avoid ugly usage in Java for doOnSuccess and doOnFailure.