2013-01-19 04:46:43 +00:00
|
|
|
|
using System.Linq;
|
|
|
|
|
|
2013-02-19 01:13:42 +00:00
|
|
|
|
namespace NzbDrone.Api.ErrorManagement
|
2013-01-19 04:46:43 +00:00
|
|
|
|
{
|
|
|
|
|
public class ErrorModel
|
|
|
|
|
{
|
|
|
|
|
public string Message { get; set; }
|
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
public object Content { get; set; }
|
|
|
|
|
|
|
|
|
|
public ErrorModel(ApiException exception)
|
|
|
|
|
{
|
|
|
|
|
Message = exception.Message;
|
|
|
|
|
Content = exception.Content;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ErrorModel()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|