HospitalizeFlowException
Keywords: net.corda.core.flows.HospitalizeFlowException class
Date: 2023-09-18

net.corda.core.flows

## Class HospitalizeFlowException

-     public class 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 `cause`s the exception wraps. Assuming there are no important wrapped exceptions, throwing a `exception HospitalizeFlowException` will place the flow in overnight observation, where it will be replayed at a later time.

  See Also:
    `cause`, `exception HospitalizeFlowException`

- - ### Constructor Detail

    - #### HospitalizeFlowException

          public HospitalizeFlowException(@Nullable
                                          java.lang.String message,
                                          @Nullable
                                          java.lang.Throwable cause)

      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 `cause`s the exception wraps. Assuming there are no important wrapped exceptions, throwing a `exception HospitalizeFlowException` will place the flow in overnight observation, where it will be replayed at a later time.

      See Also:
        `cause`, `exception HospitalizeFlowException`

    - #### HospitalizeFlowException

          public HospitalizeFlowException(@Nullable
                                          java.lang.String message)

    - #### HospitalizeFlowException

          public HospitalizeFlowException(@Nullable
                                          java.lang.Throwable cause)

    - #### HospitalizeFlowException

          public HospitalizeFlowException()