| | 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.DigitalTwins.Core |
| | 12 | | { |
| | 13 | | /// <summary> Error definition. </summary> |
| | 14 | | internal partial class Error |
| | 15 | | { |
| | 16 | | /// <summary> Initializes a new instance of Error. </summary> |
| 0 | 17 | | internal Error() |
| | 18 | | { |
| 0 | 19 | | Details = new ChangeTrackingList<Error>(); |
| 0 | 20 | | } |
| | 21 | |
|
| | 22 | | /// <summary> Initializes a new instance of Error. </summary> |
| | 23 | | /// <param name="code"> Service specific error code which serves as the substatus for the HTTP error code. </par |
| | 24 | | /// <param name="message"> A human-readable representation of the error. </param> |
| | 25 | | /// <param name="details"> Internal error details. </param> |
| | 26 | | /// <param name="innererror"> An object containing more specific information than the current object about the e |
| 0 | 27 | | internal Error(string code, string message, IReadOnlyList<Error> details, InnerError innererror) |
| | 28 | | { |
| 0 | 29 | | Code = code; |
| 0 | 30 | | Message = message; |
| 0 | 31 | | Details = details; |
| 0 | 32 | | Innererror = innererror; |
| 0 | 33 | | } |
| | 34 | |
|
| | 35 | | /// <summary> Service specific error code which serves as the substatus for the HTTP error code. </summary> |
| 0 | 36 | | public string Code { get; } |
| | 37 | | /// <summary> A human-readable representation of the error. </summary> |
| 0 | 38 | | public string Message { get; } |
| | 39 | | /// <summary> Internal error details. </summary> |
| 0 | 40 | | public IReadOnlyList<Error> Details { get; } |
| | 41 | | /// <summary> An object containing more specific information than the current object about the error. </summary> |
| 0 | 42 | | public InnerError Innererror { get; } |
| | 43 | | } |
| | 44 | | } |