| | | 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.Collections.Generic; |
| | | 9 | | using Azure.Core; |
| | | 10 | | |
| | | 11 | | namespace Azure.ResourceManager.DigitalTwins.Models |
| | | 12 | | { |
| | | 13 | | /// <summary> Error definition. </summary> |
| | | 14 | | internal partial class ErrorDefinition |
| | | 15 | | { |
| | | 16 | | /// <summary> Initializes a new instance of ErrorDefinition. </summary> |
| | 0 | 17 | | internal ErrorDefinition() |
| | | 18 | | { |
| | 0 | 19 | | Details = new ChangeTrackingList<ErrorDefinition>(); |
| | 0 | 20 | | } |
| | | 21 | | |
| | | 22 | | /// <summary> Initializes a new instance of ErrorDefinition. </summary> |
| | | 23 | | /// <param name="code"> Service specific error code which serves as the substatus for the HTTP error code. </par |
| | | 24 | | /// <param name="message"> Description of the error. </param> |
| | | 25 | | /// <param name="details"> Internal error details. </param> |
| | 0 | 26 | | internal ErrorDefinition(string code, string message, IReadOnlyList<ErrorDefinition> details) |
| | | 27 | | { |
| | 0 | 28 | | Code = code; |
| | 0 | 29 | | Message = message; |
| | 0 | 30 | | Details = details; |
| | 0 | 31 | | } |
| | | 32 | | |
| | | 33 | | /// <summary> Service specific error code which serves as the substatus for the HTTP error code. </summary> |
| | 0 | 34 | | public string Code { get; } |
| | | 35 | | /// <summary> Description of the error. </summary> |
| | 0 | 36 | | public string Message { get; } |
| | | 37 | | /// <summary> Internal error details. </summary> |
| | 0 | 38 | | public IReadOnlyList<ErrorDefinition> Details { get; } |
| | | 39 | | } |
| | | 40 | | } |