-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
ErrorResponse.cs
34 lines (28 loc) · 1.14 KB
/
ErrorResponse.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
namespace Azure.AI.AnomalyDetector
{
/// <summary> Error information that the API returned. </summary>
public partial class ErrorResponse
{
/// <summary> Initializes a new instance of ErrorResponse. </summary>
/// <param name="code"> Error code. </param>
/// <param name="message"> Message that explains the error that the service reported. </param>
/// <exception cref="ArgumentNullException"> <paramref name="code"/> or <paramref name="message"/> is null. </exception>
public ErrorResponse(string code, string message)
{
Argument.AssertNotNull(code, nameof(code));
Argument.AssertNotNull(message, nameof(message));
Code = code;
Message = message;
}
/// <summary> Error code. </summary>
public string Code { get; set; }
/// <summary> Message that explains the error that the service reported. </summary>
public string Message { get; set; }
}
}