Enum TrpErrorCode
- java.lang.Object
-
- java.lang.Enum<TrpErrorCode>
-
- com.tencentcloudapi.trp.v20210515.TrpErrorCode
-
- All Implemented Interfaces:
Serializable,Comparable<TrpErrorCode>
public enum TrpErrorCode extends Enum<TrpErrorCode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTHFAILUREAUTHFAILURE_AGENTEXPIREDAUTHFAILURE_CORPEMPTYAUTHFAILURE_CORPEXPIREDFAILEDOPERATIONINVALIDPARAMETER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetValue()static TrpErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static TrpErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTHFAILURE
public static final TrpErrorCode AUTHFAILURE
-
AUTHFAILURE_AGENTEXPIRED
public static final TrpErrorCode AUTHFAILURE_AGENTEXPIRED
-
AUTHFAILURE_CORPEMPTY
public static final TrpErrorCode AUTHFAILURE_CORPEMPTY
-
AUTHFAILURE_CORPEXPIRED
public static final TrpErrorCode AUTHFAILURE_CORPEXPIRED
-
FAILEDOPERATION
public static final TrpErrorCode FAILEDOPERATION
-
INVALIDPARAMETER
public static final TrpErrorCode INVALIDPARAMETER
-
-
Method Detail
-
values
public static TrpErrorCode[] 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 (TrpErrorCode c : TrpErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TrpErrorCode 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
-
-