refactor: Projektdateien migriert. Cloud-NuGet-Pakete durch lokale NuGet-Projekte ersetzt.
This commit is contained in:
33
HRD.WebApi/Controllers/HttpStatusCodeException.cs
Normal file
33
HRD.WebApi/Controllers/HttpStatusCodeException.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
//namespace KabionlineServer
|
||||
//{
|
||||
// using Newtonsoft.Json.Linq;
|
||||
// using System;
|
||||
|
||||
// namespace HRD.WebApi.Controllers
|
||||
// {
|
||||
// public class HttpStatusCodeException : Exception
|
||||
// {
|
||||
// public int StatusCode { get; set; }
|
||||
// public string ContentType { get; set; } = @"text/plain";
|
||||
|
||||
// public HttpStatusCodeException(int statusCode)
|
||||
// {
|
||||
// this.StatusCode = statusCode;
|
||||
// }
|
||||
|
||||
// public HttpStatusCodeException(int statusCode, string message) : base(message)
|
||||
// {
|
||||
// this.StatusCode = statusCode;
|
||||
// }
|
||||
|
||||
// public HttpStatusCodeException(int statusCode, Exception inner) : this(statusCode, inner.ToString())
|
||||
// {
|
||||
// }
|
||||
|
||||
// public HttpStatusCodeException(int statusCode, JObject errorObject) : this(statusCode, errorObject.ToString())
|
||||
// {
|
||||
// this.ContentType = @"application/json";
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
Reference in New Issue
Block a user