初始提交
This commit is contained in:
17
Infrastructure/Hncore.Infrastructure/Data/HttpException.cs
Normal file
17
Infrastructure/Hncore.Infrastructure/Data/HttpException.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Net;
|
||||
|
||||
namespace Hncore.Infrastructure.Data
|
||||
{
|
||||
public class HttpException: Exception
|
||||
{
|
||||
public HttpStatusCode HttpStatusCode { get; set; }
|
||||
|
||||
public string Content { get; set; }
|
||||
|
||||
public HttpException(HttpStatusCode httpStatusCode)
|
||||
{
|
||||
HttpStatusCode = httpStatusCode;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user