fix merge issue with exception thrown in RpcExceptionHandlingTest

This commit is contained in:
stefano 2019-11-06 12:28:05 +00:00
parent 03d8009c7d
commit 5d6fc34f88

View File

@ -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!"))
}
}