Table of Contents

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, ISerializable

Inheritance

Derived

Implements

Inherited Members

Constructors

SftpException(StatusCode)

Initializes a new instance of the Renci.SshNet.Common.SftpException class.

public SftpException(StatusCode statusCode)

Parameters

statusCode StatusCode

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

statusCode StatusCode

The status code that indicates the error that occurred.

message string?

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

statusCode StatusCode

The status code that indicates the error that occurred.

message string?

The error message that explains the reason for the exception.

innerException Exception?

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; }

Property Value

StatusCode