Adding
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using LCU.Api.Internal.FTPLib.Models.Enums;
|
||||
using LCU.Api.Internal.FTPLib.Models;
|
||||
namespace LCU.Api.Internal.FTP.Helpers;
|
||||
|
||||
public class FtpRequestResponseHelper
|
||||
{
|
||||
public static FtpRequestResponse ExceptionUpdateRequestResponse(FtpRequestResponse requestResponse,
|
||||
FtpType ftpType,
|
||||
string exception)
|
||||
{
|
||||
requestResponse.IsSuccessful = false;
|
||||
requestResponse.MessageStack.Add($"Failure to execute ftp action. " +
|
||||
$"FtpType: {ftpType}, " +
|
||||
$"Exception: {exception} ");
|
||||
return requestResponse;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user