} catch(ConnectionPendingException e) {
if (runtime.is1_9()) {
throw runtime.newErrnoEINPROGRESSWritableError();
} else {
throw runtime.newErrnoEINPROGRESSError();
}
} catch(UnknownHostException e) {
throw SocketUtils.sockerr(runtime, "connect(2): unknown host");