mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-05 18:42:42 +01:00
38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace NzbDrone.Common.Contract
|
|
{
|
|
public class ExceptionReport : ReportBase
|
|
{
|
|
[JsonProperty("t")]
|
|
public string Type { get; set; }
|
|
[JsonProperty("l")]
|
|
public string Logger { get; set; }
|
|
[JsonProperty("lm")]
|
|
public string LogMessage { get; set; }
|
|
[JsonProperty("s")]
|
|
public string String { get; set; }
|
|
|
|
[JsonProperty("xmessage")]
|
|
public string ExceptionMessage { get; set; }
|
|
|
|
[JsonProperty("stk")]
|
|
public string Stack { get; set; }
|
|
|
|
protected override Dictionary<string, string> GetString()
|
|
{
|
|
var dic = new Dictionary<string, string>
|
|
{
|
|
{"ExType", Type.NullSafe()},
|
|
{"Logger", Logger.NullSafe()},
|
|
{"Message", LogMessage.NullSafe()},
|
|
{"Str", String.NullSafe()}
|
|
};
|
|
|
|
return dic;
|
|
}
|
|
}
|
|
}
|