UnexpectedFlowEndException - corda

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)` 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. `UnexpectedFlowEndException(message: String, cause: Throwable?, originalErrorId: Long?)`

### Properties

#### originalErrorId | `val originalErrorId: Long?`

### Functions

#### getErrorId | `fun getErrorId(): Long?`