Class WorkflowException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    ValidationException, VersionException

    public class WorkflowException
    extends java.lang.Exception
    WorkflowException is the base class for all workflow related exceptions that can occur during execution of workflows and according activities.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      WorkflowException​(java.lang.String message)
      Constructs a new WorkflowException with the specified detail message.
      WorkflowException​(java.lang.String message, java.lang.Throwable cause)
      Constructs a new WorkflowException with the specified detail message and cause.
      WorkflowException​(java.lang.Throwable cause)
      Constructs a new WorkflowException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • WorkflowException

        public WorkflowException​(java.lang.String message)
        Constructs a new WorkflowException with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(java.lang.Throwable).
        Parameters:
        message - The detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
      • WorkflowException

        public WorkflowException​(java.lang.Throwable cause)
        Constructs a new WorkflowException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). This constructor is useful for WorkflowException that are wrappers for other Throwables.
        Parameters:
        cause - The cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
      • WorkflowException

        public WorkflowException​(java.lang.String message,
                                 java.lang.Throwable cause)
        Constructs a new WorkflowException with the specified detail message and cause.
        Parameters:
        message - The detail message (which is saved for later retrieval by the Throwable.getMessage() method).
        cause - The cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)