ConnectionErrorMessage.send().sslHostTrustNotEstablished( new ServerErrorEvent.ServerConfigProblemEvent(info.getServerConfig())); return createServerResultException(e, ConnectionErrorMessage.send().sslHostFingerprintMismatch( new ServerErrorEvent.ServerConfigErrorEvent<>(info.getServerConfig(), te)); return createServerResultException(e, ConnectionErrorMessage.send().unknownServer(new ServerErrorEvent.ServerNameErrorEvent<>( info.getServerName(), info.getServerConfig(), e)); return createServerResultException(e, ConnectionErrorMessage.send().couldNotWrite(new ServerErrorEvent.ServerConfigErrorEvent<>( info.getServerConfig(), (FileSaveException) e)); } else { ConnectionErrorMessage.send().zeroconfProblem(new ServerErrorEvent.ServerNameErrorEvent<>( info.getServerName(), info.getServerConfig(), (ZeroconfException) e)); return createServerResultException(e, ConnectionErrorMessage.send().sslAlgorithmNotSupported(new ServerErrorEvent.ServerNameProblemEvent( info.getServerName(), info.getServerConfig())); return createServerResultException(e, ConnectionErrorMessage.send().sslPeerUnverified(new ServerErrorEvent.ServerNameErrorEvent<>( info.getServerName(), info.getServerConfig(), (SslHandshakeException) e)); return createServerResultException(e, ConnectionErrorMessage.send().sslCertificateIssue(new ServerErrorEvent.ServerNameErrorEvent<>(