Files
tnb.server/WarehouseMgr/Tnb.WarehouseMgr.Entities/Exceptions/TimedTaskException.cs
2023-08-09 14:20:50 +08:00

45 lines
1.2 KiB
C#

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
{
}
}