33 lines
1.0 KiB
C#
33 lines
1.0 KiB
C#
//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";
|
|
// }
|
|
// }
|
|
// }
|
|
//} |