mirror of
https://github.com/corda/corda.git
synced 2025-02-20 17:33:15 +00:00
fix merge issue with exception thrown in RpcExceptionHandlingTest
This commit is contained in:
parent
03d8009c7d
commit
5d6fc34f88
@ -135,12 +135,13 @@ class RpcExceptionHandlingTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Suppress("TooGenericExceptionThrown")
|
||||
@InitiatedBy(InitFlow::class)
|
||||
class InitiatedFlow(private val initiatingSession: FlowSession) : FlowLogic<Unit>() {
|
||||
@Suspendable
|
||||
override fun call() {
|
||||
initiatingSession.receive<String>().unwrap { it }
|
||||
throw GenericJDBCException("Something went wrong!", SQLException("Oops!"))
|
||||
throw Exception("Something went wrong!", SQLException("Oops!"))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user