forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathResponseError.cs
More file actions
28 lines (23 loc) · 797 Bytes
/
ResponseError.cs
File metadata and controls
28 lines (23 loc) · 797 Bytes
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
//Copyright (c) ServiceStack, Inc. All Rights Reserved.
//License: https://raw.github.com/ServiceStack/ServiceStack/master/license.txt
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace ServiceStack
{
/// <summary>
/// Error information pertaining to a particular named field.
/// Used for returning multiple field validation errors.s
/// </summary>
[DataContract]
public class ResponseError : IMeta
{
[DataMember(Order = 1)]
public string ErrorCode { get; set; }
[DataMember(Order = 2)]
public string FieldName { get; set; }
[DataMember(Order = 3)]
public string Message { get; set; }
[DataMember(Order = 4)]
public Dictionary<string, string> Meta { get; set; }
}
}