Enum Class ErrorCodeEnum

java.lang.Object
java.lang.Enum<ErrorCodeEnum>
com.alibaba.cloud.ai.dashscope.common.ErrorCodeEnum
All Implemented Interfaces:
Serializable, Comparable<ErrorCodeEnum>, Constable

public enum ErrorCodeEnum extends Enum<ErrorCodeEnum>
Since:
1.0.0-M2
Author:
nuocheng.lxm
  • Enum Constant Details

    • READER_APPLY_LEASE_ERROR

      public static final ErrorCodeEnum READER_APPLY_LEASE_ERROR
    • READER_UPLOAD_OSS_ERROR

      public static final ErrorCodeEnum READER_UPLOAD_OSS_ERROR
    • READER_ADD_FILE_ERROR

      public static final ErrorCodeEnum READER_ADD_FILE_ERROR
    • READER_PARSE_FILE_ERROR

      public static final ErrorCodeEnum READER_PARSE_FILE_ERROR
    • SPLIT_DOCUMENT_ERROR

      public static final ErrorCodeEnum SPLIT_DOCUMENT_ERROR
    • CREATE_INDEX_ERROR

      public static final ErrorCodeEnum CREATE_INDEX_ERROR
    • INDEX_ADD_DOCUMENT_ERROR

      public static final ErrorCodeEnum INDEX_ADD_DOCUMENT_ERROR
    • RETRIEVER_DOCUMENT_ERROR

      public static final ErrorCodeEnum RETRIEVER_DOCUMENT_ERROR
  • Method Details

    • values

      public static ErrorCodeEnum[] 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 ErrorCodeEnum 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
    • getCode

      public String getCode()
    • message

      public String message()