Enum Class PublicErrorDef

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

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

    • INVALID_REQUEST

      public static final PublicErrorDef INVALID_REQUEST
    • MISSING_PARAMETER

      public static final PublicErrorDef MISSING_PARAMETER
    • CONTENT_POLICY_VIOLATION

      public static final PublicErrorDef CONTENT_POLICY_VIOLATION
    • INVALID_URL

      public static final PublicErrorDef INVALID_URL
    • INVALID_FILE

      public static final PublicErrorDef INVALID_FILE
    • AUTH_FAILED

      public static final PublicErrorDef AUTH_FAILED
    • INVALID_API_KEY

      public static final PublicErrorDef INVALID_API_KEY
    • PERMISSION_DENIED

      public static final PublicErrorDef PERMISSION_DENIED
    • RESOURCE_NOT_FOUND

      public static final PublicErrorDef RESOURCE_NOT_FOUND
    • REQUEST_TOO_LARGE

      public static final PublicErrorDef REQUEST_TOO_LARGE
    • RATE_LIMIT_EXCEEDED

      public static final PublicErrorDef RATE_LIMIT_EXCEEDED
    • CONCURRENCY_LIMIT_EXCEEDED

      public static final PublicErrorDef CONCURRENCY_LIMIT_EXCEEDED
    • INSUFFICIENT_QUOTA

      public static final PublicErrorDef INSUFFICIENT_QUOTA
    • INTERNAL_ERROR

      public static final PublicErrorDef INTERNAL_ERROR
    • SERVICE_UNAVAILABLE

      public static final PublicErrorDef SERVICE_UNAVAILABLE
    • REQUEST_TIMEOUT

      public static final PublicErrorDef REQUEST_TIMEOUT
  • Method Details

    • values

      public static PublicErrorDef[] 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 PublicErrorDef 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
    • getStatusCode

      public int getStatusCode()
    • getErrorCode

      public String getErrorCode()
    • getErrorMsg

      public String getErrorMsg()
    • getAnthropicErrorCode

      public String getAnthropicErrorCode()
    • formatMsg

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