Class ChildWorkflowTaskFailedException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ChildWorkflowTaskFailedException
    extends java.lang.RuntimeException
    Internal. Do not catch or throw by application level code. Used by the child workflow state machines in case of child workflow task execution failure and contains an original unparsed Failure message with details from the attributes in the exception.

    This class is needed to don't make Failure -> Exception conversion inside the state machines. So the state machine forms ChildWorkflowFailure without cause and parse the original Failure, so the outside code may join them together.

    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ChildWorkflowFailure getException()  
      io.temporal.api.failure.v1.Failure getOriginalCauseFailure()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ChildWorkflowTaskFailedException

        public ChildWorkflowTaskFailedException​(ChildWorkflowFailure exception,
                                                io.temporal.api.failure.v1.Failure originalCauseFailure)
    • Method Detail

      • getOriginalCauseFailure

        public io.temporal.api.failure.v1.Failure getOriginalCauseFailure()