DocumentTranslationError Class

This contains the error code, message, and target with descriptive details on why a translation operation or particular document failed.

Inheritance
builtins.object
DocumentTranslationError

Constructor

DocumentTranslationError(**kwargs: Any)

Variables

code
str

The error code. Possible high level values include: "InvalidRequest", "InvalidArgument", "InternalServerError", "ServiceUnavailable", "ResourceNotFound", "Unauthorized", "RequestRateTooHigh".

message
str

The error message associated with the failure.

target
str

The source of the error. For example it would be "documents" or "document id" in case of invalid document.