Class TemporalFailure

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ActivityFailure, ApplicationFailure, CanceledFailure, ChildWorkflowFailure, NexusOperationFailure, ServerFailure, TerminatedFailure, TimeoutFailure

public abstract class TemporalFailure extends TemporalException
Represents failures that can cross workflow and activity boundaries.

Only exceptions that extend this class will be propagated to the caller.

Never extend this class or any of its derivatives. Don't throw any subtype of this class except ApplicationFailure. They are to be used by the SDK code only.

Throw an instance ApplicationFailure to pass application specific errors between workflows and activities.

Any unhandled exception thrown by an activity or workflow will be converted to an instance of ApplicationFailure.

See Also:
  • Method Details

    • getOriginalMessage

      public String getOriginalMessage()
    • setDataConverter

      public void setDataConverter(DataConverter converter)