mirror of
https://github.com/corda/corda.git
synced 2025-04-09 04:15:35 +00:00
Improved error handling when exceptions occur during suspend.
This commit is contained in:
parent
97c001dc61
commit
40a4623c51
@ -109,9 +109,10 @@ class ProtocolStateMachineImpl<R>(val logic: ProtocolLogic<R>,
|
||||
try {
|
||||
suspendAction(with)
|
||||
} catch (t: Throwable) {
|
||||
// Do not throw exception again - Quasar completely bins it.
|
||||
logger.warn("Captured exception which was swallowed by Quasar", t)
|
||||
// TODO to throw or not to throw, that is the question
|
||||
throw t
|
||||
actionOnEnd()
|
||||
_resultFuture?.setException(t)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user