ErrorCode Class

  • java.lang.Object
    • com.microsoft.rest.ExpandableStringEnum
      • com.microsoft.azure.cognitiveservices.search.entitysearch.models.ErrorCode

public final class ErrorCode
extends com.microsoft.rest.ExpandableStringEnum<ErrorCode>

Defines values for ErrorCode.

Field Summary

Modifier and Type Field and Description
static final ErrorCode INSUFFICIENT_AUTHORIZATION

Static value InsufficientAuthorization for ErrorCode.

static final ErrorCode INVALID_AUTHORIZATION

Static value InvalidAuthorization for ErrorCode.

static final ErrorCode INVALID_REQUEST

Static value InvalidRequest for ErrorCode.

static final ErrorCode NONE

Static value None for ErrorCode.

static final ErrorCode RATE_LIMIT_EXCEEDED

Static value RateLimitExceeded for ErrorCode.

static final ErrorCode SERVER_ERROR

Static value ServerError for ErrorCode.

Constructor Summary

Constructor Description
ErrorCode()

Method Summary

Modifier and Type Method and Description
static ErrorCode fromString(String name)

Creates or finds a ErrorCode from its string representation.

static java.util.Collection<ErrorCode> values()

Methods inherited from com.microsoft.rest.ExpandableStringEnum

com.microsoft.rest.ExpandableStringEnum.<T>fromString com.microsoft.rest.ExpandableStringEnum.<T>values com.microsoft.rest.ExpandableStringEnum.equals com.microsoft.rest.ExpandableStringEnum.hashCode com.microsoft.rest.ExpandableStringEnum.toString com.microsoft.rest.ExpandableStringEnum.withNameValue

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

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:

name - a name to look for

Returns:

the corresponding ErrorCode

values

public static Collection values()

Returns:

known ErrorCode values

Applies to