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

net.corda.core.flows

## Class UnexpectedFlowEndException

-     public class UnexpectedFlowEndException

  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.

- - ### Constructor Detail

    - #### UnexpectedFlowEndException

          public UnexpectedFlowEndException(@NotNull
                                            java.lang.String message,
                                            @Nullable
                                            java.lang.Throwable cause,
                                            @Nullable
                                            java.lang.Long originalErrorId)

      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

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

    - #### UnexpectedFlowEndException

          public UnexpectedFlowEndException(@NotNull
                                            java.lang.String message)

  - ### Method Detail

    - #### getErrorId

          @Nullable
          public java.lang.Long getErrorId()

    - #### getOriginalErrorId

          @Nullable
          public java.lang.Long getOriginalErrorId()