This commit is contained in:
2018-06-28 23:08:13 +00:00
commit 877637f1e5
69 changed files with 13521 additions and 0 deletions

26
Models/ApiError.cs Normal file
View File

@@ -0,0 +1,26 @@
using System;
namespace GZTW.Pecklist.Models
{
public class ApiError
{
public int code { get; set; }
public string message { get; set; }
//public string type { get; set; }
public string source { get; set; }
public string helpurl { get; set; }
public static ApiError generalError(string msg, string src)
{
return new ApiError { code = 100, helpurl = "peck.ayanova.com", message = msg, source = src };
}
}
}
/*
codes
100 = general error until we have more specific ones
*/