Class ActivityException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.temporal.failure.TemporalException
io.temporal.client.ActivityException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ActivityAlreadyStartedException,ActivityFailedException
Base exception for standalone activity execution failures.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedActivityException(String message, String activityId, String runId, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionThe ID of the activity execution that caused this exception.getRunId()The run ID of the activity execution, ornullif not available.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ActivityException
-
-
Method Details
-
getActivityId
The ID of the activity execution that caused this exception. -
getRunId
The run ID of the activity execution, ornullif not available.
-