KilledFlowException
Keywords: net.corda.core.flows.KilledFlowException class
Date: 2023-09-18

net.corda.core.flows

## Class KilledFlowException

-     public class KilledFlowException

  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.

  See Also:
    `FlowLogic.isKilled`

- - ### Constructor Detail

    - #### KilledFlowException

          public KilledFlowException(@NotNull
                                     StateMachineRunId id,
                                     @NotNull
                                     java.lang.String message)

      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.

      See Also:
        `FlowLogic.isKilled`

    - #### KilledFlowException

          public KilledFlowException(@NotNull
                                     StateMachineRunId id)

  - ### Method Detail

    - #### getId

          @NotNull
          public StateMachineRunId getId()