Enum Class IUseCaseResult.ErrorCode

java.lang.Object
java.lang.Enum<IUseCaseResult.ErrorCode>
com.polarion.alm.tracker.ai.IUseCaseResult.ErrorCode
All Implemented Interfaces:
Serializable, Comparable<IUseCaseResult.ErrorCode>, Constable
Enclosing interface:
IUseCaseResult

public static enum IUseCaseResult.ErrorCode extends Enum<IUseCaseResult.ErrorCode>
More specific error codes may be added in the future; clients should be prepared to handle unknown values. It is recommended to handle unknown enumeration values the same way as `SYSTEM_ERROR`, such as by using a `default` branch in switch statements.
  • Enum Constant Details

    • USER_ERROR

      public static final IUseCaseResult.ErrorCode USER_ERROR
      Indicates an error caused by invalid or missing user input.
    • SYSTEM_ERROR

      public static final IUseCaseResult.ErrorCode SYSTEM_ERROR
      Represents any internal, configuration, or unexpected error not caused by user input.
  • Method Details

    • values

      public static IUseCaseResult.ErrorCode[] 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 IUseCaseResult.ErrorCode 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