corda / net.corda.core.flows / KilledFlowException

KilledFlowException

class KilledFlowException : CordaRuntimeException

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.

Constructors

<init>

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

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

Properties

id

val id: StateMachineRunId

Inherited Properties

cause

open val cause: Throwable?

message

open val message: String?

originalExceptionClassName

open var originalExceptionClassName: String?

originalMessage

open val originalMessage: String?

Inherited Functions

addSuppressed

open fun addSuppressed(suppressed: Array<Throwable>): Unit

equals

open fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

setCause

open fun setCause(cause: Throwable?): Unit

setMessage

open fun setMessage(message: String?): Unit

Extension Functions

contextLogger

fun Any.contextLogger(): <ERROR CLASS>

When called from a companion object, returns the logger for the enclosing class.