| | 1 | | // <auto-generated> |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.Models |
| | 12 | | { |
| | 13 | | using System.Collections; |
| | 14 | | using System.Collections.Generic; |
| | 15 | | using System.Linq; |
| | 16 | |
|
| | 17 | | /// <summary> |
| | 18 | | /// The error object. |
| | 19 | | /// </summary> |
| | 20 | | public partial class ErrorResponseError : Error |
| | 21 | | { |
| | 22 | | /// <summary> |
| | 23 | | /// Initializes a new instance of the ErrorResponseError class. |
| | 24 | | /// </summary> |
| 0 | 25 | | public ErrorResponseError() |
| | 26 | | { |
| | 27 | | CustomInit(); |
| 0 | 28 | | } |
| | 29 | |
|
| | 30 | | /// <summary> |
| | 31 | | /// Initializes a new instance of the ErrorResponseError class. |
| | 32 | | /// </summary> |
| | 33 | | /// <param name="code">One of a server-defined set of error codes. |
| | 34 | | /// Possible values include: 'BadArgument', 'Forbidden', 'NotFound', |
| | 35 | | /// 'KbNotFound', 'Unauthorized', 'Unspecified', 'EndpointKeysError', |
| | 36 | | /// 'QuotaExceeded', 'QnaRuntimeError', 'SKULimitExceeded', |
| | 37 | | /// 'OperationNotFound', 'ServiceError', 'ValidationFailure', |
| | 38 | | /// 'ExtractionFailure'</param> |
| | 39 | | /// <param name="message">A human-readable representation of the |
| | 40 | | /// error.</param> |
| | 41 | | /// <param name="target">The target of the error.</param> |
| | 42 | | /// <param name="details">An array of details about specific errors |
| | 43 | | /// that led to this reported error.</param> |
| | 44 | | /// <param name="innerError">An object containing more specific |
| | 45 | | /// information than the current object about the error.</param> |
| | 46 | | public ErrorResponseError(string code, string message = default(string), string target = default(string), IList< |
| 0 | 47 | | : base(code, message, target, details, innerError) |
| | 48 | | { |
| | 49 | | CustomInit(); |
| 0 | 50 | | } |
| | 51 | |
|
| | 52 | | /// <summary> |
| | 53 | | /// An initialization method that performs custom operations like setting defaults |
| | 54 | | /// </summary> |
| | 55 | | partial void CustomInit(); |
| | 56 | |
|
| | 57 | | /// <summary> |
| | 58 | | /// Validate the object. |
| | 59 | | /// </summary> |
| | 60 | | /// <exception cref="Rest.ValidationException"> |
| | 61 | | /// Thrown if validation fails |
| | 62 | | /// </exception> |
| | 63 | | public override void Validate() |
| | 64 | | { |
| 0 | 65 | | base.Validate(); |
| 0 | 66 | | } |
| | 67 | | } |
| | 68 | | } |