ErrorCode Class
- java.
lang. Object - com.
microsoft. rest. ExpandableStringEnum - com.
microsoft. azure. cognitiveservices. search. customsearch. models. ErrorCode
- com.
- com.
public final class ErrorCode
extends com.microsoft.rest.ExpandableStringEnum<ErrorCode>
Defines values for ErrorCode.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final
Error |
INSUFFICIENT_AUTHORIZATION
Static value Insufficient |
static final
Error |
INVALID_AUTHORIZATION
Static value Invalid |
static final
Error |
INVALID_REQUEST
Static value Invalid |
static final
Error |
NONE
Static value None for Error |
static final
Error |
RATE_LIMIT_EXCEEDED
Static value Rate |
static final
Error |
SERVER_ERROR
Static value Server |
Constructor Summary
Constructor | Description | |
---|---|---|
ErrorCode() |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Error |
fromString(String name)
Creates or finds a Error |
static
java.util.Collection<Error |
values() |
Methods inherited from com.microsoft.rest.ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
INSUFFICIENT_AUTHORIZATION
public static final ErrorCode INSUFFICIENT_AUTHORIZATION
Static value InsufficientAuthorization for ErrorCode.
INVALID_AUTHORIZATION
public static final ErrorCode INVALID_AUTHORIZATION
Static value InvalidAuthorization for ErrorCode.
INVALID_REQUEST
public static final ErrorCode INVALID_REQUEST
Static value InvalidRequest for ErrorCode.
NONE
public static final ErrorCode NONE
Static value None for ErrorCode.
RATE_LIMIT_EXCEEDED
public static final ErrorCode RATE_LIMIT_EXCEEDED
Static value RateLimitExceeded for ErrorCode.
SERVER_ERROR
public static final ErrorCode SERVER_ERROR
Static value ServerError for ErrorCode.
Constructor Details
ErrorCode
public 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