Package io.dapr.workflows.client
Interface WorkflowFailureDetails
- All Known Implementing Classes:
DefaultWorkflowFailureDetails
public interface WorkflowFailureDetails
Represents a workflow failure details.
-
Method Summary
Modifier and TypeMethodDescriptionGets the error message.Gets the error type, which is the namespace-qualified exception type name.Gets the stack trace.default boolean
isCausedBy
(Class<? extends Exception> exceptionClass) Checks whether the failure was caused by the provided exception class.
-
Method Details
-
getErrorType
String getErrorType()Gets the error type, which is the namespace-qualified exception type name.- Returns:
- the error type, which is the namespace-qualified exception type name
-
getErrorMessage
String getErrorMessage()Gets the error message.- Returns:
- the error message
-
getStackTrace
String getStackTrace()Gets the stack trace.- Returns:
- the stack trace
-
isCausedBy
Checks whether the failure was caused by the provided exception class.- Parameters:
exceptionClass
- the exception class to check- Returns:
true
if the failure was caused by the provided exception class
-