新增 ,定时器自定义异常类
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using SqlSugar;
|
||||
|
||||
namespace Tnb.WarehouseMgr.Entities.Exceptions
|
||||
{
|
||||
/// <summary>
|
||||
/// 定时任务自定义异常
|
||||
/// </summary>
|
||||
public class TimedTaskException : Exception
|
||||
{
|
||||
public string Method { get; set; }
|
||||
public string UserId { get; set; }
|
||||
public string UserName { get; set; }
|
||||
public string RequestURL { get; set; }
|
||||
public string RequestMethod { get; set; }
|
||||
public ConnectionConfigOptions options { get; set; }
|
||||
|
||||
public TimedTaskException(string message,
|
||||
string method,
|
||||
string userId,
|
||||
string userName,
|
||||
string requestUrl,
|
||||
string requestMethod,
|
||||
ConnectionConfigOptions options,
|
||||
Exception innerException) : base(message, innerException)
|
||||
{
|
||||
this.Method = method;
|
||||
this.UserId = userId;
|
||||
this.UserName = userName;
|
||||
this.RequestURL = requestUrl;
|
||||
this.RequestMethod = requestMethod;
|
||||
this.options = options;
|
||||
}
|
||||
}
|
||||
|
||||
public static class TimedTaskExceptionExtensions
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user