Enum Class PublicErrorDef

java.lang.Object
java.lang.Enum<PublicErrorDef>
com.alibaba.dashscope.legacy_2x.common.PublicErrorDef
All Implemented Interfaces:
Serializable, Comparable<PublicErrorDef>, Constable

@Deprecated public enum PublicErrorDef extends Enum<PublicErrorDef>
Deprecated.
Customer-facing error definitions.
  • Enum Constant Details

    • INVALID_REQUEST

      public static final PublicErrorDef INVALID_REQUEST
      Deprecated.
    • MISSING_PARAMETER

      public static final PublicErrorDef MISSING_PARAMETER
      Deprecated.
    • CONTENT_POLICY_VIOLATION

      public static final PublicErrorDef CONTENT_POLICY_VIOLATION
      Deprecated.
    • INVALID_URL

      public static final PublicErrorDef INVALID_URL
      Deprecated.
    • INVALID_FILE

      public static final PublicErrorDef INVALID_FILE
      Deprecated.
    • AUTH_FAILED

      public static final PublicErrorDef AUTH_FAILED
      Deprecated.
    • INVALID_API_KEY

      public static final PublicErrorDef INVALID_API_KEY
      Deprecated.
    • PERMISSION_DENIED

      public static final PublicErrorDef PERMISSION_DENIED
      Deprecated.
    • RESOURCE_NOT_FOUND

      public static final PublicErrorDef RESOURCE_NOT_FOUND
      Deprecated.
    • REQUEST_TOO_LARGE

      public static final PublicErrorDef REQUEST_TOO_LARGE
      Deprecated.
    • RATE_LIMIT_EXCEEDED

      public static final PublicErrorDef RATE_LIMIT_EXCEEDED
      Deprecated.
    • CONCURRENCY_LIMIT_EXCEEDED

      public static final PublicErrorDef CONCURRENCY_LIMIT_EXCEEDED
      Deprecated.
    • INSUFFICIENT_QUOTA

      public static final PublicErrorDef INSUFFICIENT_QUOTA
      Deprecated.
    • INTERNAL_ERROR

      public static final PublicErrorDef INTERNAL_ERROR
      Deprecated.
    • SERVICE_UNAVAILABLE

      public static final PublicErrorDef SERVICE_UNAVAILABLE
      Deprecated.
    • REQUEST_TIMEOUT

      public static final PublicErrorDef REQUEST_TIMEOUT
      Deprecated.
  • Method Details

    • values

      public static PublicErrorDef[] values()
      Deprecated.
      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 PublicErrorDef valueOf(String name)
      Deprecated.
      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
    • getStatusCode

      public int getStatusCode()
      Deprecated.
    • getErrorCode

      public String getErrorCode()
      Deprecated.
    • getErrorMsg

      public String getErrorMsg()
      Deprecated.
    • getAnthropicErrorCode

      public String getAnthropicErrorCode()
      Deprecated.
    • formatMsg

      public String formatMsg(Map<String,String> vars)
      Deprecated.