open class FlowException : Exception
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 FlowLogic.receive or FlowLogic.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.
| <init> |
FlowException(message: String? = null, cause: Throwable? = null)
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 FlowLogic.receive or FlowLogic.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). |
| rootCause |
val Throwable.rootCause: Throwable |
| AssetMismatchException |
class AssetMismatchException : FlowException |
| CashException |
class CashException : FlowException |
| HashNotFound |
class HashNotFound : FlowException |
| InsufficientBalanceException |
class InsufficientBalanceException : FlowException |
| NotaryException |
class NotaryException : FlowException |
| StateReplacementException |
open class StateReplacementException : FlowException |
| UnacceptablePriceException |
class UnacceptablePriceException : FlowException |