| | 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.AI.TextAnalytics.Models |
| | 11 | | { |
| | 12 | | /// <summary> The DocumentError. </summary> |
| | 13 | | internal partial class DocumentError |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of DocumentError. </summary> |
| | 16 | | /// <param name="id"> Document Id. </param> |
| | 17 | | /// <param name="error"> Document Error. </param> |
| | 18 | | /// <exception cref="ArgumentNullException"> <paramref name="id"/> or <paramref name="error"/> is null. </except |
| 8 | 19 | | internal DocumentError(string id, TextAnalyticsError_internal error) |
| | 20 | | { |
| 8 | 21 | | if (id == null) |
| | 22 | | { |
| 0 | 23 | | throw new ArgumentNullException(nameof(id)); |
| | 24 | | } |
| 8 | 25 | | if (error == null) |
| | 26 | | { |
| 0 | 27 | | throw new ArgumentNullException(nameof(error)); |
| | 28 | | } |
| | 29 | |
|
| 8 | 30 | | Id = id; |
| 8 | 31 | | Error = error; |
| 8 | 32 | | } |
| | 33 | |
|
| | 34 | | /// <summary> Document Id. </summary> |
| 4 | 35 | | public string Id { get; } |
| | 36 | | /// <summary> Document Error. </summary> |
| 8 | 37 | | public TextAnalyticsError_internal Error { get; } |
| | 38 | | } |
| | 39 | | } |