DocumentError

class oci.ai_language.models.DocumentError(**kwargs)

Bases: object

Error response for document.

Methods

__init__(**kwargs) Initializes a new DocumentError object with values from keyword arguments.

Attributes

error [Required] Gets the error of this DocumentError.
key [Required] Gets the key of this DocumentError.
__init__(**kwargs)

Initializes a new DocumentError object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • key (str) – The value to assign to the key property of this DocumentError.
  • error (oci.ai_language.models.ErrorDetails) – The value to assign to the error property of this DocumentError.
error

[Required] Gets the error of this DocumentError.

Returns:The error of this DocumentError.
Return type:oci.ai_language.models.ErrorDetails
key

[Required] Gets the key of this DocumentError. Document unique identifier defined by the user.

Returns:The key of this DocumentError.
Return type:str