| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | |
|
| | 10 | | namespace Azure.Search.Documents.Indexes.Models |
| | 11 | | { |
| | 12 | | /// <summary> Represents an item- or document-level indexing error. </summary> |
| | 13 | | public partial class SearchIndexerError |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of SearchIndexerError. </summary> |
| | 16 | | /// <param name="errorMessage"> The message describing the error that occurred while processing the item. </para |
| | 17 | | /// <param name="statusCode"> The status code indicating why the indexing operation failed. Possible values incl |
| | 18 | | /// <exception cref="ArgumentNullException"> <paramref name="errorMessage"/> is null. </exception> |
| 0 | 19 | | internal SearchIndexerError(string errorMessage, int statusCode) |
| | 20 | | { |
| 0 | 21 | | if (errorMessage == null) |
| | 22 | | { |
| 0 | 23 | | throw new ArgumentNullException(nameof(errorMessage)); |
| | 24 | | } |
| | 25 | |
|
| 0 | 26 | | ErrorMessage = errorMessage; |
| 0 | 27 | | StatusCode = statusCode; |
| 0 | 28 | | } |
| | 29 | |
|
| | 30 | | /// <summary> Initializes a new instance of SearchIndexerError. </summary> |
| | 31 | | /// <param name="key"> The key of the item for which indexing failed. </param> |
| | 32 | | /// <param name="errorMessage"> The message describing the error that occurred while processing the item. </para |
| | 33 | | /// <param name="statusCode"> The status code indicating why the indexing operation failed. Possible values incl |
| | 34 | | /// <param name="name"> The name of the source at which the error originated. For example, this could refer to a |
| | 35 | | /// <param name="details"> Additional, verbose details about the error to assist in debugging the indexer. This |
| | 36 | | /// <param name="documentationLink"> A link to a troubleshooting guide for these classes of errors. This may not |
| 0 | 37 | | internal SearchIndexerError(string key, string errorMessage, int statusCode, string name, string details, string |
| | 38 | | { |
| 0 | 39 | | Key = key; |
| 0 | 40 | | ErrorMessage = errorMessage; |
| 0 | 41 | | StatusCode = statusCode; |
| 0 | 42 | | Name = name; |
| 0 | 43 | | Details = details; |
| 0 | 44 | | DocumentationLink = documentationLink; |
| 0 | 45 | | } |
| | 46 | |
|
| | 47 | | /// <summary> The key of the item for which indexing failed. </summary> |
| 0 | 48 | | public string Key { get; } |
| | 49 | | /// <summary> The message describing the error that occurred while processing the item. </summary> |
| 0 | 50 | | public string ErrorMessage { get; } |
| | 51 | | /// <summary> The status code indicating why the indexing operation failed. Possible values include: 400 for a m |
| 0 | 52 | | public int StatusCode { get; } |
| | 53 | | /// <summary> The name of the source at which the error originated. For example, this could refer to a particula |
| 0 | 54 | | public string Name { get; } |
| | 55 | | /// <summary> Additional, verbose details about the error to assist in debugging the indexer. This may not be al |
| 0 | 56 | | public string Details { get; } |
| | 57 | | /// <summary> A link to a troubleshooting guide for these classes of errors. This may not be always available. < |
| 0 | 58 | | public string DocumentationLink { get; } |
| | 59 | | } |
| | 60 | | } |