| | 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.AI.FormRecognizer.Models |
| | 11 | | { |
| | 12 | | /// <summary> The ErrorResponse. </summary> |
| | 13 | | internal partial class ErrorResponse |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of ErrorResponse. </summary> |
| | 16 | | /// <param name="error"> . </param> |
| | 17 | | /// <exception cref="ArgumentNullException"> <paramref name="error"/> is null. </exception> |
| 0 | 18 | | internal ErrorResponse(FormRecognizerError error) |
| | 19 | | { |
| 0 | 20 | | if (error == null) |
| | 21 | | { |
| 0 | 22 | | throw new ArgumentNullException(nameof(error)); |
| | 23 | | } |
| | 24 | |
|
| 0 | 25 | | Error = error; |
| 0 | 26 | | } |
| | 27 | |
|
| 0 | 28 | | public FormRecognizerError Error { get; } |
| | 29 | | } |
| | 30 | | } |