-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathDeserializationException.cs
More file actions
34 lines (31 loc) · 1 KB
/
DeserializationException.cs
File metadata and controls
34 lines (31 loc) · 1 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
using System;
namespace JSONAPI.Json
{
/// <summary>
/// An exception that may be thrown by document formatters during deserialization
/// in response to a JSON API-noncompliant document being submitted by the client.
/// </summary>
public class DeserializationException : Exception
{
/// <summary>
/// The title of the error
/// </summary>
public string Title { get; private set; }
/// <summary>
/// The path in the document where the error occurred.
/// </summary>
public string Pointer { get; private set; }
/// <summary>
/// Creates a new DeserializationException
/// </summary>
/// <param name="title"></param>
/// <param name="message"></param>
/// <param name="pointer"></param>
public DeserializationException(string title, string message, string pointer)
: base(message)
{
Title = title;
Pointer = pointer;
}
}
}