Class SearchIndexerError
java.lang.Object
com.azure.search.documents.indexes.models.SearchIndexerError
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SearchIndexerError>
public final class SearchIndexerError
extends Object
implements com.azure.json.JsonSerializable<SearchIndexerError>
Represents an item- or document-level indexing error.
-
Constructor Summary
ConstructorsConstructorDescriptionSearchIndexerError(String errorMessage, int statusCode) Creates an instance of SearchIndexerError class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchIndexerErrorfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SearchIndexerError from the JsonReader.Get the details property: Additional, verbose details about the error to assist in debugging the indexer.Get the documentationLink property: A link to a troubleshooting guide for these classes of errors.Get the errorMessage property: The message describing the error that occurred while processing the item.getKey()Get the key property: The key of the item for which indexing failed.getName()Get the name property: The name of the source at which the error originated.intGet the statusCode property: The status code indicating why the indexing operation failed.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SearchIndexerError
Creates an instance of SearchIndexerError class.- Parameters:
errorMessage- the errorMessage value to set.statusCode- the statusCode value to set.
-
-
Method Details
-
getKey
Get the key property: The key of the item for which indexing failed.- Returns:
- the key value.
-
getErrorMessage
Get the errorMessage property: The message describing the error that occurred while processing the item.- Returns:
- the errorMessage value.
-
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:
- the statusCode value.
-
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:
- the name value.
-
getDetails
Get the details property: Additional, verbose details about the error to assist in debugging the indexer. This may not be always available.- Returns:
- the details value.
-
getDocumentationLink
Get the documentationLink property: A link to a troubleshooting guide for these classes of errors. This may not be always available.- Returns:
- the documentationLink value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SearchIndexerError>- Throws:
IOException
-
fromJson
Reads an instance of SearchIndexerError from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SearchIndexerError if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the SearchIndexerError.
-