| | 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 | |
|
| | 10 | | namespace Azure.Analytics.Synapse.AccessControl.Models |
| | 11 | | { |
| | 12 | | /// <summary> The ErrorDetail. </summary> |
| | 13 | | internal partial class ErrorDetail |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of ErrorDetail. </summary> |
| | 16 | | /// <param name="code"> . </param> |
| | 17 | | /// <param name="message"> . </param> |
| | 18 | | /// <exception cref="ArgumentNullException"> <paramref name="code"/> or <paramref name="message"/> is null. </ex |
| 0 | 19 | | internal ErrorDetail(string code, string message) |
| | 20 | | { |
| 0 | 21 | | if (code == null) |
| | 22 | | { |
| 0 | 23 | | throw new ArgumentNullException(nameof(code)); |
| | 24 | | } |
| 0 | 25 | | if (message == null) |
| | 26 | | { |
| 0 | 27 | | throw new ArgumentNullException(nameof(message)); |
| | 28 | | } |
| | 29 | |
|
| 0 | 30 | | Code = code; |
| 0 | 31 | | Message = message; |
| 0 | 32 | | } |
| | 33 | |
|
| | 34 | | /// <summary> Initializes a new instance of ErrorDetail. </summary> |
| | 35 | | /// <param name="code"> . </param> |
| | 36 | | /// <param name="message"> . </param> |
| | 37 | | /// <param name="target"> . </param> |
| 0 | 38 | | internal ErrorDetail(string code, string message, string target) |
| | 39 | | { |
| 0 | 40 | | Code = code; |
| 0 | 41 | | Message = message; |
| 0 | 42 | | Target = target; |
| 0 | 43 | | } |
| | 44 | |
|
| 0 | 45 | | public string Code { get; } |
| 0 | 46 | | public string Message { get; } |
| 0 | 47 | | public string Target { get; } |
| | 48 | | } |
| | 49 | | } |