corda / net.corda.core.flows / UnexpectedFlowEndException

UnexpectedFlowEndException

class UnexpectedFlowEndException : CordaRuntimeException, IdentifiableException

Thrown when a flow session ends unexpectedly due to a type mismatch (the other side sent an object of a type that we were not expecting), or the other side had an internal error, or the other side terminated when we were waiting for a response.

Constructors

<init>

UnexpectedFlowEndException(message: String, cause: Throwable?)
UnexpectedFlowEndException(message: String)UnexpectedFlowEndException(message: String, cause: Throwable?, originalErrorId: Long?)

Thrown when a flow session ends unexpectedly due to a type mismatch (the other side sent an object of a type that we were not expecting), or the other side had an internal error, or the other side terminated when we were waiting for a response.

Properties

originalErrorId

val originalErrorId: Long?

Inherited Properties

cause

open val cause: Throwable?

message

open val message: String?

originalExceptionClassName

open var originalExceptionClassName: String?

originalMessage

open val originalMessage: String?

Functions

getErrorId

fun getErrorId(): Long?

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(): Logger

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