corda / net.corda.core.flows / FlowException

FlowException

open class FlowException : CordaException

Exception which can be thrown by a FlowLogic at any point in its logic to unexpectedly bring it to a permanent end. The exception will propagate to all counterparty flows and will be thrown on their end the next time they wait on a FlowSession.receive or FlowSession.sendAndReceive. Any flow which no longer needs to do a receive, or has already ended, will not receive the exception (if this is required then have them wait for a confirmation message).

FlowException (or a subclass) can be a valid expected response from a flow, particularly ones which act as a service. It is recommended a FlowLogic document the FlowException types it can throw.

Constructors

<init>

FlowException(message: String?)
FlowException(cause: Throwable?)
FlowException()FlowException(message: String?, cause: Throwable?)

Exception which can be thrown by a FlowLogic at any point in its logic to unexpectedly bring it to a permanent end. The exception will propagate to all counterparty flows and will be thrown on their end the next time they wait on a FlowSession.receive or FlowSession.sendAndReceive. Any flow which no longer needs to do a receive, or has already ended, will not receive the exception (if this is required then have them wait for a confirmation message).

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 Properties

rootCause

val Throwable.rootCause: Throwable

Extension Functions

getStackTraceAsString

fun Throwable.getStackTraceAsString(): String

Inheritors

AssetMismatchException

class AssetMismatchException : FlowException

AttachmentResolutionException

class AttachmentResolutionException : FlowException

CashException

class CashException : FlowException

ExcessivelyLargeTransactionGraph

class ExcessivelyLargeTransactionGraph : FlowException

HashNotFound

class HashNotFound : FlowException

InsufficientBalanceException

class InsufficientBalanceException : FlowException

NotaryException

class NotaryException : FlowException

StateReplacementException

open class StateReplacementException : FlowException

StatesNotAvailableException

class StatesNotAvailableException : FlowException

TransactionResolutionException

class TransactionResolutionException : FlowException

TransactionVerificationException

sealed class TransactionVerificationException : FlowException

UnacceptablePriceException

class UnacceptablePriceException : FlowException

UnknownCalendar

class UnknownCalendar : FlowException

VaultQueryException

class VaultQueryException : FlowException