修复工单Bug
This commit is contained in:
1 parent
7982f7e348
commit
8e0cc20649
12 files changed
+602
-236
No files matched your search
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
|
||||
namespace OrderSupportTicket.Services;
|
||||
|
||||
/// <summary>
|
||||
/// 工单接口调用失败时返回的异常。
|
||||
/// </summary>
|
||||
public sealed class TicketApiException : Exception
|
||||
{
|
||||
/// <summary>
|
||||
/// 创建工单接口异常。
|
||||
/// </summary>
|
||||
public TicketApiException(
|
||||
int statusCode,
|
||||
string message,
|
||||
string responseBody = null)
|
||||
: base(message)
|
||||
{
|
||||
StatusCode = statusCode;
|
||||
ResponseBody = responseBody;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 服务端返回的状态码;无法从 GetHtml 响应中识别时为 0。
|
||||
/// </summary>
|
||||
public int StatusCode { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 服务端返回的原始响应正文。
|
||||
/// </summary>
|
||||
public string ResponseBody { get; }
|
||||
}
|
||||
Reference in new issue
Block a user