ContentfulError.cs
1.19 KB
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
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
namespace Contentful.Core.Models
{
/// <summary>
/// Encapsulates an error returned from the Contentful API.
/// </summary>
public class ContentfulError : IContentfulResource
{
/// <summary>
/// Common system managed metadata properties.
/// </summary>
[JsonProperty("sys")]
public SystemProperties SystemProperties { get; set; }
/// <summary>
/// Encapsulates the details of the error.
/// </summary>
public ContentfulErrorDetails Details { get; set; }
}
/// <summary>
/// Encapsulates detailed information about an error returned by the Contentful API.
/// </summary>
public class ContentfulErrorDetails
{
/// <summary>
/// The type of error.
/// </summary>
public string Type { get; set; }
/// <summary>
/// The type of link causing the error.
/// </summary>
public string LinkType { get; set; }
/// <summary>
/// The id of the resource causing issues.
/// </summary>
public string Id { get; set; }
}
}