mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
37 lines
912 B
C#
37 lines
912 B
C#
using System;
|
|
using System.Diagnostics;
|
|
using System.Globalization;
|
|
|
|
namespace Octokit
|
|
{
|
|
[Serializable]
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class ApiErrorDetail
|
|
{
|
|
public ApiErrorDetail() { }
|
|
|
|
public ApiErrorDetail(string message, string code, string field, string resource)
|
|
{
|
|
Message = message;
|
|
Code = code;
|
|
Field = field;
|
|
Resource = resource;
|
|
}
|
|
|
|
public string Message { get; protected set; }
|
|
|
|
public string Code { get; protected set; }
|
|
|
|
public string Field { get; protected set; }
|
|
|
|
public string Resource { get; protected set; }
|
|
|
|
internal string DebuggerDisplay
|
|
{
|
|
get
|
|
{
|
|
return string.Format(CultureInfo.InvariantCulture, "Message: {0}, Code: {1}, Field: {2}", Message, Code, Field);
|
|
}
|
|
}
|
|
}
|
|
} |