TextAnalyticsError Class

TextAnalyticsError contains the error code, message, and other details that explain why the batch or individual document failed to be processed by the service.

Inheritance
azure.ai.textanalytics._dict_mixin.DictMixin
TextAnalyticsError

Constructor

TextAnalyticsError(**kwargs: Any)

Methods

get
has_key
items
keys
update
values

get

get(key: str, default: Any | None = None) -> Any

Parameters

Name Description
key
Required
default
Default value: None

has_key

has_key(k: str) -> bool

Parameters

Name Description
k
Required

items

items() -> Iterable[Tuple[str, Any]]

keys

keys() -> Iterable[str]

update

update(*args: Any, **kwargs: Any) -> None

values

values() -> Iterable[Any]

Attributes

code

Error code. Possible values include 'invalidRequest', 'invalidArgument', 'internalServerError', 'serviceUnavailable', 'invalidParameterValue', 'invalidRequestBodyFormat', 'emptyRequest', 'missingInputRecords', 'invalidDocument', 'modelVersionIncorrect', 'invalidDocumentBatch', 'unsupportedLanguageCode', 'invalidCountryHint'

code: str

message

Error message.

message: str

target

Error target.

target: str | None = None