KilledFlowException.<init> - corda

corda / net.corda.core.flows / KilledFlowException / <init>

# <init>

`KilledFlowException(id: StateMachineRunId)` `KilledFlowException(id: StateMachineRunId, message: String)`

An exception that is thrown when a flow has been killed.

This exception can be returned and thrown to RPC clients waiting for the result of a flow's future.

It can also be used in conjunction with FlowLogic.isKilled to escape long-running computation loops when a flow has been killed.