mirror of
https://github.com/corda/corda.git
synced 2025-06-01 23:20:54 +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)
|
@InitiatedBy(InitFlow::class)
|
||||||
class InitiatedFlow(private val initiatingSession: FlowSession) : FlowLogic<Unit>() {
|
class InitiatedFlow(private val initiatingSession: FlowSession) : FlowLogic<Unit>() {
|
||||||
@Suspendable
|
@Suspendable
|
||||||
override fun call() {
|
override fun call() {
|
||||||
initiatingSession.receive<String>().unwrap { it }
|
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