-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
MediaJobError.cs
47 lines (41 loc) · 2.23 KB
/
MediaJobError.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
35
36
37
38
39
40
41
42
43
44
45
46
47
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
namespace Azure.Messaging.EventGrid.SystemEvents
{
/// <summary> Details of JobOutput errors. </summary>
public partial class MediaJobError
{
/// <summary> Initializes a new instance of <see cref="MediaJobError"/>. </summary>
internal MediaJobError()
{
Details = new ChangeTrackingList<MediaJobErrorDetail>();
}
/// <summary> Initializes a new instance of <see cref="MediaJobError"/>. </summary>
/// <param name="code"> Error code describing the error. </param>
/// <param name="message"> A human-readable language-dependent representation of the error. </param>
/// <param name="category"> Helps with categorization of errors. </param>
/// <param name="retry"> Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal. </param>
/// <param name="details"> An array of details about specific errors that led to this reported error. </param>
internal MediaJobError(MediaJobErrorCode? code, string message, MediaJobErrorCategory? category, MediaJobRetry? retry, IReadOnlyList<MediaJobErrorDetail> details)
{
Code = code;
Message = message;
Category = category;
Retry = retry;
Details = details;
}
/// <summary> Error code describing the error. </summary>
public MediaJobErrorCode? Code { get; }
/// <summary> A human-readable language-dependent representation of the error. </summary>
public string Message { get; }
/// <summary> Helps with categorization of errors. </summary>
public MediaJobErrorCategory? Category { get; }
/// <summary> Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal. </summary>
public MediaJobRetry? Retry { get; }
/// <summary> An array of details about specific errors that led to this reported error. </summary>
public IReadOnlyList<MediaJobErrorDetail> Details { get; }
}
}