| | 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 | |
|
| 4 | 12 | | namespace Azure.AI.TextAnalytics.Models |
| | 13 | | { |
| | 14 | | /// <summary> The InnerError. </summary> |
| | 15 | | internal partial class InnerError |
| | 16 | | { |
| | 17 | | /// <summary> Initializes a new instance of InnerError. </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 InnerError(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 ChangeTrackingDictionary<string, string>(); |
| 0 | 35 | | } |
| | 36 | |
|
| | 37 | | /// <summary> Initializes a new instance of InnerError. </summary> |
| | 38 | | /// <param name="code"> Error code. </param> |
| | 39 | | /// <param name="message"> Error message. </param> |
| | 40 | | /// <param name="details"> Error details. </param> |
| | 41 | | /// <param name="target"> Error target. </param> |
| | 42 | | /// <param name="innererror"> Inner error contains more specific information. </param> |
| 8 | 43 | | internal InnerError(string code, string message, IReadOnlyDictionary<string, string> details, string target, Inn |
| | 44 | | { |
| 8 | 45 | | Code = code; |
| 8 | 46 | | Message = message; |
| 8 | 47 | | Details = details; |
| 8 | 48 | | Target = target; |
| 8 | 49 | | Innererror = innererror; |
| 8 | 50 | | } |
| | 51 | | /// <summary> Error message. </summary> |
| 8 | 52 | | public string Message { get; } |
| | 53 | | /// <summary> Error details. </summary> |
| 0 | 54 | | public IReadOnlyDictionary<string, string> Details { get; } |
| | 55 | | /// <summary> Error target. </summary> |
| 8 | 56 | | public string Target { get; } |
| | 57 | | /// <summary> Inner error contains more specific information. </summary> |
| 0 | 58 | | public InnerError Innererror { get; } |
| | 59 | | } |
| | 60 | | } |