ErrorCode Class
- java.
lang. Object - com.
microsoft. rest. ExpandableStringEnum<ErrorCode> - com.
microsoft. azure. cognitiveservices. search. visualsearch. models. ErrorCode
- com.
- com.
public class ErrorCode
Defines values for ErrorCode.
Field Summary
Modifier and Type | Field and Description |
---|---|
final Error |
INSUFFICIENT_AUTHORIZATION
Static value InsufficientAuthorization for ErrorCode. |
final Error |
INVALID_AUTHORIZATION
Static value InvalidAuthorization for ErrorCode. |
final Error |
INVALID_REQUEST
Static value InvalidRequest for ErrorCode. |
final Error |
NONE
Static value None for ErrorCode. |
final Error |
RATE_LIMIT_EXCEEDED
Static value RateLimitExceeded for ErrorCode. |
final Error |
SERVER_ERROR
Static value ServerError for ErrorCode. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Error |
fromString(String name)
Creates or finds a ErrorCode from its string representation. |
Collection<Error |
values() |
Field Details
INSUFFICIENT_AUTHORIZATION
public static final ErrorCode INSUFFICIENT_AUTHORIZATION= fromString("InsufficientAuthorization")
Static value InsufficientAuthorization for ErrorCode.
INVALID_AUTHORIZATION
public static final ErrorCode INVALID_AUTHORIZATION= fromString("InvalidAuthorization")
Static value InvalidAuthorization for ErrorCode.
INVALID_REQUEST
public static final ErrorCode INVALID_REQUEST= fromString("InvalidRequest")
Static value InvalidRequest for ErrorCode.
NONE
public static final ErrorCode NONE= fromString("None")
Static value None for ErrorCode.
RATE_LIMIT_EXCEEDED
public static final ErrorCode RATE_LIMIT_EXCEEDED= fromString("RateLimitExceeded")
Static value RateLimitExceeded for ErrorCode.
SERVER_ERROR
public static final ErrorCode SERVER_ERROR= fromString("ServerError")
Static value ServerError for ErrorCode.
Method Details
fromString
public static ErrorCode fromString(String name)
Creates or finds a ErrorCode from its string representation.
Parameters:
Returns:
values
public static Collection
Returns:
Applies to
Azure SDK for Java