Errors.ERRNO_ECONNRESET_NEGATIVE), Socket.class, "shutdown"); private static final Errors.NativeConnectException FINISH_CONNECT_REFUSED_EXCEPTION = unknownStackTrace(new Errors.NativeConnectException("syscall:getsockopt", Errors.ERROR_ECONNREFUSED_NEGATIVE), Socket.class, "finishConnect(..)"); private static final Errors.NativeConnectException CONNECT_REFUSED_EXCEPTION = unknownStackTrace(new Errors.NativeConnectException("syscall:connect", Errors.ERROR_ECONNREFUSED_NEGATIVE), Socket.class, "connect(..)");
static void throwConnectException(String method, NativeConnectException refusedCause, int err) throws IOException { if (err == refusedCause.expectedErr()) { throw refusedCause; } if (err == ERROR_EALREADY_NEGATIVE) { throw new ConnectionPendingException(); } if (err == ERROR_ENETUNREACH_NEGATIVE) { throw new NoRouteToHostException(); } if (err == ERROR_EISCONN_NEGATIVE) { throw new AlreadyConnectedException(); } if (err == ERRNO_ENOENT_NEGATIVE) { throw new FileNotFoundException(); } throw new ConnectException(method + "(..) failed: " + ERRORS[-err]); }
Errors.ERRNO_ECONNRESET_NEGATIVE), Socket.class, "shutdown"); private static final Errors.NativeConnectException FINISH_CONNECT_REFUSED_EXCEPTION = unknownStackTrace(new Errors.NativeConnectException("syscall:getsockopt", Errors.ERROR_ECONNREFUSED_NEGATIVE), Socket.class, "finishConnect(..)"); private static final Errors.NativeConnectException CONNECT_REFUSED_EXCEPTION = unknownStackTrace(new Errors.NativeConnectException("syscall:connect", Errors.ERROR_ECONNREFUSED_NEGATIVE), Socket.class, "connect(..)");
Errors.ERRNO_ECONNRESET_NEGATIVE), Socket.class, "shutdown"); private static final Errors.NativeConnectException FINISH_CONNECT_REFUSED_EXCEPTION = unknownStackTrace(new Errors.NativeConnectException("syscall:getsockopt", Errors.ERROR_ECONNREFUSED_NEGATIVE), Socket.class, "finishConnect(..)"); private static final Errors.NativeConnectException CONNECT_REFUSED_EXCEPTION = unknownStackTrace(new Errors.NativeConnectException("syscall:connect", Errors.ERROR_ECONNREFUSED_NEGATIVE), Socket.class, "connect(..)");
Errors.ERRNO_ECONNRESET_NEGATIVE), Socket.class, "shutdown"); private static final Errors.NativeConnectException FINISH_CONNECT_REFUSED_EXCEPTION = unknownStackTrace(new Errors.NativeConnectException("syscall:getsockopt", Errors.ERROR_ECONNREFUSED_NEGATIVE), Socket.class, "finishConnect(..)"); private static final Errors.NativeConnectException CONNECT_REFUSED_EXCEPTION = unknownStackTrace(new Errors.NativeConnectException("syscall:connect", Errors.ERROR_ECONNREFUSED_NEGATIVE), Socket.class, "connect(..)");
Errors.ERRNO_ECONNRESET_NEGATIVE), Socket.class, "shutdown"); private static final Errors.NativeConnectException FINISH_CONNECT_REFUSED_EXCEPTION = unknownStackTrace(new Errors.NativeConnectException("syscall:getsockopt", Errors.ERROR_ECONNREFUSED_NEGATIVE), Socket.class, "finishConnect(..)"); private static final Errors.NativeConnectException CONNECT_REFUSED_EXCEPTION = unknownStackTrace(new Errors.NativeConnectException("syscall:connect", Errors.ERROR_ECONNREFUSED_NEGATIVE), Socket.class, "connect(..)");
static void throwConnectException(String method, NativeConnectException refusedCause, int err) throws IOException { if (err == refusedCause.expectedErr()) { throw refusedCause; } if (err == ERROR_EALREADY_NEGATIVE) { throw new ConnectionPendingException(); } if (err == ERROR_ENETUNREACH_NEGATIVE) { throw new NoRouteToHostException(); } if (err == ERROR_EISCONN_NEGATIVE) { throw new AlreadyConnectedException(); } if (err == ERRNO_ENOENT_NEGATIVE) { throw new FileNotFoundException(); } throw new ConnectException(method + "(..) failed: " + ERRORS[-err]); }
static void throwConnectException(String method, NativeConnectException refusedCause, int err) throws IOException { if (err == refusedCause.expectedErr()) { throw refusedCause; } if (err == ERROR_EALREADY_NEGATIVE) { throw new ConnectionPendingException(); } if (err == ERROR_ENETUNREACH_NEGATIVE) { throw new NoRouteToHostException(); } if (err == ERROR_EISCONN_NEGATIVE) { throw new AlreadyConnectedException(); } if (err == ERRNO_ENOENT_NEGATIVE) { throw new FileNotFoundException(); } throw new ConnectException(method + "(..) failed: " + ERRORS[-err]); }
static void throwConnectException(String method, NativeConnectException refusedCause, int err) throws IOException { if (err == refusedCause.expectedErr()) { throw refusedCause; } if (err == ERROR_EALREADY_NEGATIVE) { throw new ConnectionPendingException(); } if (err == ERROR_ENETUNREACH_NEGATIVE) { throw new NoRouteToHostException(); } if (err == ERROR_EISCONN_NEGATIVE) { throw new AlreadyConnectedException(); } if (err == ERRNO_ENOENT_NEGATIVE) { throw new FileNotFoundException(); } throw new ConnectException(method + "(..) failed: " + ERRORS[-err]); }
static void throwConnectException(String method, NativeConnectException refusedCause, int err) throws IOException { if (err == refusedCause.expectedErr()) { throw refusedCause; } if (err == ERROR_EALREADY_NEGATIVE) { throw new ConnectionPendingException(); } if (err == ERROR_ENETUNREACH_NEGATIVE) { throw new NoRouteToHostException(); } if (err == ERROR_EISCONN_NEGATIVE) { throw new AlreadyConnectedException(); } if (err == ERRNO_ENOENT_NEGATIVE) { throw new FileNotFoundException(); } throw new ConnectException(method + "(..) failed: " + ERRORS[-err]); }
Errors.ERRNO_ECONNRESET_NEGATIVE), Socket.class, "shutdown"); private static final Errors.NativeConnectException FINISH_CONNECT_REFUSED_EXCEPTION = unknownStackTrace(new Errors.NativeConnectException("syscall:getsockopt", Errors.ERROR_ECONNREFUSED_NEGATIVE), Socket.class, "finishConnect(..)"); private static final Errors.NativeConnectException CONNECT_REFUSED_EXCEPTION = unknownStackTrace(new Errors.NativeConnectException("syscall:connect", Errors.ERROR_ECONNREFUSED_NEGATIVE), Socket.class, "connect(..)");
static void throwConnectException(String method, NativeConnectException refusedCause, int err) throws IOException { if (err == refusedCause.expectedErr()) { throw refusedCause; } if (err == ERROR_EALREADY_NEGATIVE) { throw new ConnectionPendingException(); } if (err == ERROR_ENETUNREACH_NEGATIVE) { throw new NoRouteToHostException(); } if (err == ERROR_EISCONN_NEGATIVE) { throw new AlreadyConnectedException(); } if (err == ERRNO_ENOENT_NEGATIVE) { throw new FileNotFoundException(); } throw new ConnectException(method + "(..) failed: " + ERRORS[-err]); }