ErrorCode Class

  • java.lang.Object
    • com.microsoft.rest.ExpandableStringEnum<ErrorCode>
      • com.microsoft.azure.cognitiveservices.language.spellcheck.models.ErrorCode

public class ErrorCode

Defines values for ErrorCode.

Field Summary

Modifier and Type Field and Description
final ErrorCode INSUFFICIENT_AUTHORIZATION

Static value InsufficientAuthorization for ErrorCode.

final ErrorCode INVALID_AUTHORIZATION

Static value InvalidAuthorization for ErrorCode.

final ErrorCode INVALID_REQUEST

Static value InvalidRequest for ErrorCode.

final ErrorCode NONE

Static value None for ErrorCode.

final ErrorCode RATE_LIMIT_EXCEEDED

Static value RateLimitExceeded for ErrorCode.

final ErrorCode SERVER_ERROR

Static value ServerError for ErrorCode.

Method Summary

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

Creates or finds a ErrorCode from its string representation.

Collection<ErrorCode> 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:

name - a name to look for

Returns:

the corresponding ErrorCode

values

public static Collection values()

Returns:

known ErrorCode values

Applies to