Package io.dapr.workflows.runtime
Class DefaultWorkflowFailureDetails
java.lang.Object
io.dapr.workflows.runtime.DefaultWorkflowFailureDetails
- All Implemented Interfaces:
WorkflowFailureDetails
Represents a workflow failure details.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultWorkflowFailureDetails(io.dapr.durabletask.FailureDetails failureDetails) Class constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the error message.Gets the error type, which is the namespace-qualified exception type name.Gets the stack trace.booleanisCausedBy(Class<? extends Exception> exceptionClass) Checks whether the failure was caused by the provided exception class.toString()
-
Constructor Details
-
DefaultWorkflowFailureDetails
public DefaultWorkflowFailureDetails(io.dapr.durabletask.FailureDetails failureDetails) Class constructor.- Parameters:
failureDetails- failure Details
-
-
Method Details
-
getErrorType
Gets the error type, which is the namespace-qualified exception type name.- Specified by:
getErrorTypein interfaceWorkflowFailureDetails- Returns:
- the error type, which is the namespace-qualified exception type name
-
getErrorMessage
Gets the error message.- Specified by:
getErrorMessagein interfaceWorkflowFailureDetails- Returns:
- the error message
-
getStackTrace
Gets the stack trace.- Specified by:
getStackTracein interfaceWorkflowFailureDetails- Returns:
- the stack trace
-
isCausedBy
Checks whether the failure was caused by the provided exception class.- Specified by:
isCausedByin interfaceWorkflowFailureDetails- Parameters:
exceptionClass- the exception class to check- Returns:
trueif the failure was caused by the provided exception class
-
toString
-