SftpClient.failed

bool failed() @property const

Returns

whether channel failure or EOF made the client unusable.