mirror of
https://github.com/corda/corda.git
synced 2025-02-21 01:42:24 +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.