| | 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.Analytics.Synapse.AccessControl.Models |
| | 13 | | { |
| | 14 | | /// <summary> The ErrorResponse. </summary> |
| | 15 | | internal partial class ErrorResponse |
| | 16 | | { |
| | 17 | | /// <summary> Initializes a new instance of ErrorResponse. </summary> |
| | 18 | | /// <param name="code"> . </param> |
| | 19 | | /// <param name="message"> . </param> |
| | 20 | | /// <exception cref="ArgumentNullException"> <paramref name="code"/> or <paramref name="message"/> is null. </ex |
| 0 | 21 | | internal ErrorResponse(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<ErrorDetail>(); |
| 0 | 35 | | } |
| | 36 | |
|
| | 37 | | /// <summary> Initializes a new instance of ErrorResponse. </summary> |
| | 38 | | /// <param name="code"> . </param> |
| | 39 | | /// <param name="message"> . </param> |
| | 40 | | /// <param name="target"> . </param> |
| | 41 | | /// <param name="details"> . </param> |
| 0 | 42 | | internal ErrorResponse(string code, string message, string target, IReadOnlyList<ErrorDetail> details) |
| | 43 | | { |
| 0 | 44 | | Code = code; |
| 0 | 45 | | Message = message; |
| 0 | 46 | | Target = target; |
| 0 | 47 | | Details = details; |
| 0 | 48 | | } |
| | 49 | |
|
| 0 | 50 | | public string Code { get; } |
| 0 | 51 | | public string Message { get; } |
| 0 | 52 | | public string Target { get; } |
| 0 | 53 | | public IReadOnlyList<ErrorDetail> Details { get; } |
| | 54 | | } |
| | 55 | | } |