| | 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 | | using System.Collections.Generic; |
| | 10 | | using Azure.Core; |
| | 11 | |
|
| | 12 | | namespace Azure.AI.TextAnalytics.Models |
| 4 | 13 | | { |
| | 14 | | /// <summary> The TextAnalyticsError. </summary> |
| | 15 | | internal partial class TextAnalyticsError_internal |
| | 16 | | { |
| | 17 | | /// <summary> Initializes a new instance of TextAnalyticsError_internal. </summary> |
| | 18 | | /// <param name="code"> Error code. </param> |
| | 19 | | /// <param name="message"> Error message. </param> |
| | 20 | | /// <exception cref="ArgumentNullException"> <paramref name="code"/> or <paramref name="message"/> is null. </ex |
| 0 | 21 | | internal TextAnalyticsError_internal(string code, string message) |
| | 22 | | { |
| 0 | 23 | | if (code == null) |
| | 24 | | { |
| 0 | 25 | | throw new ArgumentNullException(nameof(code)); |
| | 26 | | } |
| 0 | 27 | | if (message == null) |
| | 28 | | { |
| 0 | 29 | | throw new ArgumentNullException(nameof(message)); |
| | 30 | | } |
| | 31 | |
|
| 0 | 32 | | Code = code; |
| 0 | 33 | | Message = message; |
| 0 | 34 | | Details = new ChangeTrackingList<TextAnalyticsError_internal>(); |
| 0 | 35 | | } |
| | 36 | |
|
| | 37 | | /// <summary> Initializes a new instance of TextAnalyticsError_internal. </summary> |
| | 38 | | /// <param name="code"> Error code. </param> |
| | 39 | | /// <param name="message"> Error message. </param> |
| | 40 | | /// <param name="target"> Error target. </param> |
| | 41 | | /// <param name="innererror"> Inner error contains more specific information. </param> |
| | 42 | | /// <param name="details"> Details about specific errors that led to this reported error. </param> |
| 8 | 43 | | internal TextAnalyticsError_internal(string code, string message, string target, InnerError innererror, IReadOnl |
| | 44 | | { |
| 8 | 45 | | Code = code; |
| 8 | 46 | | Message = message; |
| 8 | 47 | | Target = target; |
| 8 | 48 | | Innererror = innererror; |
| 8 | 49 | | Details = details; |
| 8 | 50 | | } |
| | 51 | | /// <summary> Error message. </summary> |
| 8 | 52 | | public string Message { get; } |
| | 53 | | /// <summary> Error target. </summary> |
| 8 | 54 | | public string Target { get; } |
| | 55 | | /// <summary> Inner error contains more specific information. </summary> |
| 8 | 56 | | public InnerError Innererror { get; } |
| | 57 | | /// <summary> Details about specific errors that led to this reported error. </summary> |
| 0 | 58 | | public IReadOnlyList<TextAnalyticsError_internal> Details { get; } |
| | 59 | | } |
| | 60 | | } |