CancellationErrorCode Enum

Definition

Defines error code in case that CancellationReason is Error. Added in version 1.1.0.

public enum CancellationErrorCode
Inheritance
java.lang.Object
java.lang.Enum<CancellationErrorCode>
CancellationErrorCode

Fields

AuthenticationFailure

Indicates an authentication error. An authentication error occurs if subscription key or authorization token is invalid, expired, or does not match the region being used.

BadRequest

Indicates that one or more recognition parameters are invalid or the audio format is not supported.

ConnectionFailure

Indicates a connection error.

Forbidden

Indicates that the free subscription used by the request ran out of quota.

NoError

Indicates that no error occurred during speech recognition. If CancellationReason is EndOfStream, CancellationErrorCode is set to NoError.

RuntimeError

Indicates an unexpected runtime error.

ServiceError

Indicates that an error is returned by the service.

ServiceTimeout

Indicates a time-out error when waiting for response from service.

ServiceUnavailable

Indicates that the service is currently unavailable.

TooManyRequests

Indicates that the number of parallel requests exceeded the number of allowed concurrent transcriptions for the subscription.

Methods

getValue()

Returns the internal value error code

public int getValue()

Returns

int

the error code

Applies to