HospitalizeFlowException - corda

corda / net.corda.core.flows / HospitalizeFlowException

# HospitalizeFlowException

`open class HospitalizeFlowException : CordaRuntimeException`

This exception allows a flow to pass itself to the flow hospital. Once the flow reaches the hospital it will determine how to progress depending on what causes the exception wraps. Assuming there are no important wrapped exceptions, throwing a HospitalizeFlowException will place the flow in overnight observation, where it will be replayed at a later time.

### Constructors

#### <init> | `HospitalizeFlowException(message: String?)` `HospitalizeFlowException(cause: Throwable?)` `HospitalizeFlowException()` This exception allows a flow to pass itself to the flow hospital. Once the flow reaches the hospital it will determine how to progress depending on what causes the exception wraps. Assuming there are no important wrapped exceptions, throwing a HospitalizeFlowException will place the flow in overnight observation, where it will be replayed at a later time. `HospitalizeFlowException(message: String?, cause: Throwable?)`