Class DefaultWorkflowFailureDetails

java.lang.Object
io.dapr.workflows.runtime.DefaultWorkflowFailureDetails
All Implemented Interfaces:
WorkflowFailureDetails

public class DefaultWorkflowFailureDetails extends Object implements WorkflowFailureDetails
Represents a workflow failure details.
  • Constructor Details

    • DefaultWorkflowFailureDetails

      public DefaultWorkflowFailureDetails(io.dapr.durabletask.FailureDetails failureDetails)
      Class constructor.
      Parameters:
      failureDetails - failure Details
  • Method Details

    • getErrorType

      public String getErrorType()
      Gets the error type, which is the namespace-qualified exception type name.
      Specified by:
      getErrorType in interface WorkflowFailureDetails
      Returns:
      the error type, which is the namespace-qualified exception type name
    • getErrorMessage

      public String getErrorMessage()
      Gets the error message.
      Specified by:
      getErrorMessage in interface WorkflowFailureDetails
      Returns:
      the error message
    • getStackTrace

      public String getStackTrace()
      Gets the stack trace.
      Specified by:
      getStackTrace in interface WorkflowFailureDetails
      Returns:
      the stack trace
    • isCausedBy

      public boolean isCausedBy(Class<? extends Exception> exceptionClass)
      Checks whether the failure was caused by the provided exception class.
      Specified by:
      isCausedBy in interface WorkflowFailureDetails
      Parameters:
      exceptionClass - the exception class to check
      Returns:
      true if the failure was caused by the provided exception class
    • toString

      public String toString()
      Overrides:
      toString in class Object