public abstract class TemporalFailure extends TemporalException
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
.
Modifier | Constructor and Description |
---|---|
protected |
TemporalFailure(java.lang.String message,
java.lang.String originalMessage,
java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getOriginalMessage() |
void |
setDataConverter(DataConverter converter) |
protected TemporalFailure(java.lang.String message, java.lang.String originalMessage, java.lang.Throwable cause)
public java.lang.String getOriginalMessage()
public void setDataConverter(DataConverter converter)