This commit is contained in:
26
Models/ApiError.cs
Normal file
26
Models/ApiError.cs
Normal 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
|
||||
|
||||
|
||||
*/
|
||||
Reference in New Issue
Block a user