Package io.temporal.failure
Class TemporalFailure
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.temporal.failure.TemporalException
-
- io.temporal.failure.TemporalFailure
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ActivityFailure
,ApplicationFailure
,CanceledFailure
,ChildWorkflowFailure
,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. 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:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TemporalFailure(java.lang.String message, java.lang.String originalMessage, java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getOriginalMessage()
void
setDataConverter(DataConverter converter)
-
-
-
Method Detail
-
getOriginalMessage
public java.lang.String getOriginalMessage()
-
setDataConverter
public void setDataConverter(DataConverter converter)
-
-