Class SftpException
- Namespace
- Renci.SshNet.Common
- Assembly
- Renci.SshNet.dll
The exception that is thrown when an error occurs in the SFTP layer.
public class SftpException : SshException, ISerializableInheritance
Derived
Implements
Inherited Members
Constructors
SftpException(StatusCode)
Initializes a new instance of the Renci.SshNet.Common.SftpException class.
public SftpException(StatusCode statusCode)Parameters
statusCodeStatusCode-
The status code that indicates the error that occurred.
SftpException(StatusCode, string?)
Initializes a new instance of the Renci.SshNet.Common.SftpException class.
public SftpException(StatusCode statusCode, string? message)Parameters
statusCodeStatusCode-
The status code that indicates the error that occurred.
messagestring?-
The error message that explains the reason for the exception.
SftpException(StatusCode, string?, Exception?)
Initializes a new instance of the Renci.SshNet.Common.SftpException class.
public SftpException(StatusCode statusCode, string? message, Exception? innerException)Parameters
statusCodeStatusCode-
The status code that indicates the error that occurred.
messagestring?-
The error message that explains the reason for the exception.
innerExceptionException?-
The exception that is the cause of the current exception.
Properties
StatusCode
Gets the status code that is associated with this exception.
public StatusCode StatusCode { get; }