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

ScpException

public class ScpException : SshException
The exception that is thrown when an SCP error occurs.
using System; using System.Runtime.CompilerServices; using System.Runtime.Serialization; namespace Renci.SshNet.Common { [Serializable] [System.Runtime.CompilerServices.NullableContext(2)] [System.Runtime.CompilerServices.Nullable(0)] public class ScpException : SshException { public ScpException() { } public ScpException(string message) : base(message) { } public ScpException(string message, Exception innerException) : base(message, innerException) { } [System.Runtime.CompilerServices.NullableContext(1)] protected ScpException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }