ServerError

data class ServerError(val statusCode: SftpStatusCode, val message: String) : SftpResult<Nothing> (source)

SFTP server returned an error status.

Constructors

Link copied to clipboard
constructor(statusCode: SftpStatusCode, message: String)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun <T> SftpResult<T>.getOrNull(): T?

Convenience: extract value or null for success, throws nothing.

Link copied to clipboard

Convenience: extract value or throw for interop with blocking APIs.