added Nancy pipelines for error handling,

cleaned up container registrations.
This commit is contained in:
kay.one
2013-01-18 20:46:43 -08:00
parent acef97b79f
commit c184595935
22 changed files with 333 additions and 201 deletions
+21
View File
@@ -0,0 +1,21 @@
using System.Linq;
namespace NzbDrone.Api.ErrorManagment
{
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()
{
}
}
}