<PackageReference Include="SSH.NET" Version="2025.1.0" />

Renci.SshNet.Common.SftpException

public class SftpException : SshException
The exception that is thrown when an error occurs in the SFTP layer.
namespace Renci.SshNet.Common { public class SftpException : SshException { public StatusCode StatusCode { get; } public SftpException(StatusCode statusCode); public SftpException(StatusCode statusCode, string message); public SftpException(StatusCode statusCode, string message, Exception innerException); protected SftpException(SerializationInfo info, StreamingContext context); } }