SearchIndexerError Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. SearchIndexerError
- com.
Implements
public final class SearchIndexerError
implements JsonSerializable<SearchIndexerError>
Represents an item- or document-level indexing error.
Constructor Summary
Constructor | Description |
---|---|
SearchIndexerError(String errorMessage, int statusCode) |
Creates an instance of Search |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Search |
fromJson(JsonReader jsonReader)
Reads an instance of Search |
String |
getDetails()
Get the details property: Additional, verbose details about the error to assist in debugging the indexer. |
String |
getDocumentationLink()
Get the documentation |
String |
getErrorMessage()
Get the error |
String |
getKey()
Get the key property: The key of the item for which indexing failed. |
String |
getName()
Get the name property: The name of the source at which the error originated. |
int |
getStatusCode()
Get the status |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
SearchIndexerError
public SearchIndexerError(String errorMessage, int statusCode)
Creates an instance of SearchIndexerError class.
Parameters:
Method Details
fromJson
public static SearchIndexerError fromJson(JsonReader jsonReader)
Reads an instance of SearchIndexerError from the JsonReader.
Parameters:
Returns:
Throws:
getDetails
public String getDetails()
Get the details property: Additional, verbose details about the error to assist in debugging the indexer. This may not be always available.
Returns:
getDocumentationLink
public String getDocumentationLink()
Get the documentationLink property: A link to a troubleshooting guide for these classes of errors. This may not be always available.
Returns:
getErrorMessage
public String getErrorMessage()
Get the errorMessage property: The message describing the error that occurred while processing the item.
Returns:
getKey
public String getKey()
Get the key property: The key of the item for which indexing failed.
Returns:
getName
public String getName()
Get the name property: The name of the source at which the error originated. For example, this could refer to a particular skill in the attached skillset. This may not be always available.
Returns:
getStatusCode
public int getStatusCode()
Get the statusCode property: The status code indicating why the indexing operation failed. Possible values include: 400 for a malformed input document, 404 for document not found, 409 for a version conflict, 422 when the index is temporarily unavailable, or 503 for when the service is too busy.
Returns:
toJson
Applies to
Azure SDK for Java
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour