Enum TrocketErrorCode
- java.lang.Object
-
- java.lang.Enum<TrocketErrorCode>
-
- com.tencentcloudapi.trocket.v20230308.TrocketErrorCode
-
- All Implemented Interfaces:
Serializable,Comparable<TrocketErrorCode>
public enum TrocketErrorCode extends Enum<TrocketErrorCode>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetValue()static TrocketErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static TrocketErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FAILEDOPERATION
public static final TrocketErrorCode FAILEDOPERATION
-
FAILEDOPERATION_INSTANCENOTREADY
public static final TrocketErrorCode FAILEDOPERATION_INSTANCENOTREADY
-
LIMITEXCEEDED_TOPICNUM
public static final TrocketErrorCode LIMITEXCEEDED_TOPICNUM
-
OPERATIONDENIED
public static final TrocketErrorCode OPERATIONDENIED
-
RESOURCEINUSE
public static final TrocketErrorCode RESOURCEINUSE
-
RESOURCENOTFOUND_GROUP
public static final TrocketErrorCode RESOURCENOTFOUND_GROUP
-
RESOURCENOTFOUND_INSTANCE
public static final TrocketErrorCode RESOURCENOTFOUND_INSTANCE
-
RESOURCENOTFOUND_TOPIC
public static final TrocketErrorCode RESOURCENOTFOUND_TOPIC
-
RESOURCEUNAVAILABLE
public static final TrocketErrorCode RESOURCEUNAVAILABLE
-
UNSUPPORTEDOPERATION_RESOURCEALREADYEXISTS
public static final TrocketErrorCode UNSUPPORTEDOPERATION_RESOURCEALREADYEXISTS
-
-
Method Detail
-
values
public static TrocketErrorCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TrocketErrorCode c : TrocketErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TrocketErrorCode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public String getValue()
- Returns:
- errorcode value
-
-