This commit is contained in:
alex
2023-08-10 10:24:27 +08:00
parent 7aea535351
commit e88604b748
3 changed files with 9 additions and 3 deletions

View File

@@ -39,14 +39,14 @@ namespace Tnb.WarehouseMgr.Entities.Exceptions
public static class TimedTaskExceptionExtensions
{
public static TimedTaskException ToTimedTaskException(this Exception exception, ErrorInfo exceptionInfo)
public static TimedTaskException ToTimedTaskException(this Exception exception, TimedTaskErrorInfo exceptionInfo)
{
TimedTaskException ex = new(exception.Message, exceptionInfo.RequestURL, exceptionInfo.RequestMethod, exceptionInfo.userIdentity, exception);
return ex;
}
}
public class ErrorInfo
public class TimedTaskErrorInfo
{
public string RequestURL { get; set; }
public string RequestMethod { get; set; }