Enum WebhookPushErrorType
- java.lang.Object
-
- java.lang.Enum<WebhookPushErrorType>
-
- ai.toloka.client.v1.webhooksubscription.WebhookPushErrorType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<WebhookPushErrorType>
public enum WebhookPushErrorType extends java.lang.Enum<WebhookPushErrorType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONNECTION_ERRORINTERNAL_ERRORREQUEST_TIMEOUTTOO_MANY_CONNECTIONSUNKNOWNWRONG_STATUS_CODE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WebhookPushErrorTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static WebhookPushErrorType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WRONG_STATUS_CODE
public static final WebhookPushErrorType WRONG_STATUS_CODE
-
TOO_MANY_CONNECTIONS
public static final WebhookPushErrorType TOO_MANY_CONNECTIONS
-
REQUEST_TIMEOUT
public static final WebhookPushErrorType REQUEST_TIMEOUT
-
CONNECTION_ERROR
public static final WebhookPushErrorType CONNECTION_ERROR
-
INTERNAL_ERROR
public static final WebhookPushErrorType INTERNAL_ERROR
-
UNKNOWN
public static final WebhookPushErrorType UNKNOWN
-
-
Method Detail
-
values
public static WebhookPushErrorType[] 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 (WebhookPushErrorType c : WebhookPushErrorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WebhookPushErrorType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-