Enum Class ErrorSubStatus

java.lang.Object
java.lang.Enum<ErrorSubStatus>
io.superdurable.dex.exceptions.ErrorSubStatus
All Implemented Interfaces:
Serializable, Comparable<ErrorSubStatus>, Constable

public enum ErrorSubStatus extends Enum<ErrorSubStatus>
Identifies a Dex-specific category within a transport error.

Inspect this value from DexServiceException.getSubStatus() when application recovery depends on more detail than the gRPC status code provides. Prefer concrete exception subclasses for control flow; use the substatus for diagnostics and uncategorized service failures.

  • Enum Constant Details

    • UNCATEGORIZED

      public static final ErrorSubStatus UNCATEGORIZED
      Indicates an error without a more specific Dex category.
    • FLOW_ALREADY_STARTED

      public static final ErrorSubStatus FLOW_ALREADY_STARTED
      Indicates that the requested Flow ID is already in use.
    • FLOW_NOT_EXISTS

      public static final ErrorSubStatus FLOW_NOT_EXISTS
      Indicates that the requested Flow execution does not exist.
    • WORKER_API_ERROR

      public static final ErrorSubStatus WORKER_API_ERROR
      Indicates that a worker invocation failed.
    • LONG_POLL_TIMEOUT

      public static final ErrorSubStatus LONG_POLL_TIMEOUT
      Indicates that a long-poll operation reached its wait timeout.
    • CHANNEL_MESSAGE_NOT_FOUND

      public static final ErrorSubStatus CHANNEL_MESSAGE_NOT_FOUND
      Indicates that a pending Channel message ID no longer exists.
    • REQUEST_TIMEOUT

      public static final ErrorSubStatus REQUEST_TIMEOUT
      Indicates that a caller-visible request budget expired.
    • FLOW_CLOSING

      public static final ErrorSubStatus FLOW_CLOSING
      Indicates that Dex rejected an update-class request during Flow close cleanup.
  • Method Details

    • values

      public static ErrorSubStatus[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ErrorSubStatus valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null