Examples of newErrnoECONNREFUSEDError()


Examples of org.jruby.Ruby.newErrnoECONNREFUSEDError()

        try {
            DatagramChannel channel = DatagramChannel.open();
            initSocket(runtime, new ChannelDescriptor(channel, newModeFlags(runtime, ModeFlags.RDWR)));

        } catch (ConnectException e) {
            throw runtime.newErrnoECONNREFUSEDError();

        } catch (UnknownHostException e) {
            throw SocketUtils.sockerr(runtime, "initialize: name or service not known");

        } catch (IOException e) {
View Full Code Here

Examples of org.jruby.Ruby.newErrnoECONNREFUSEDError()

        } catch (UnknownHostException e) {
            throw SocketUtils.sockerr(runtime, "recvfrom: name or service not known");

        } catch (PortUnreachableException e) {
            throw runtime.newErrnoECONNREFUSEDError();

        } catch (IOException e) {
            throw SocketUtils.sockerr(runtime, "recvfrom: name or service not known");
        }
    }
View Full Code Here

Examples of org.jruby.Ruby.newErrnoECONNREFUSEDError()

        } catch (UnknownHostException e) {
            throw SocketUtils.sockerr(runtime, "recvfrom: name or service not known");

        } catch (PortUnreachableException e) {
            throw runtime.newErrnoECONNREFUSEDError();

        } catch (IOException e) {
            throw SocketUtils.sockerr(runtime, "recvfrom: name or service not known");
        }
    }
View Full Code Here

Examples of org.jruby.Ruby.newErrnoECONNREFUSEDError()

                success = true;
            } catch (NoRouteToHostException nrthe) {
                throw runtime.newErrnoEHOSTUNREACHError("SocketChannel.connect");

            } catch(ConnectException e) {
                throw runtime.newErrnoECONNREFUSEDError();

            } catch(UnknownHostException e) {
                throw SocketUtils.sockerr(runtime, "initialize: name or service not known");

            }
View Full Code Here

Examples of org.jruby.Ruby.newErrnoECONNREFUSEDError()

                throw SocketUtils.sockerr(runtime, "initialize: name or service not known");

            }

        } catch (ClosedChannelException cce) {
            throw runtime.newErrnoECONNREFUSEDError();

        } catch(BindException e) {
            throw runtime.newErrnoEADDRFromBindException(e);

        } catch(IOException e) {
View Full Code Here

Examples of org.jruby.Ruby.newErrnoECONNREFUSEDError()

        try {
            DatagramChannel channel = DatagramChannel.open();
            initSocket(newChannelFD(runtime, channel));

        } catch (ConnectException e) {
            throw runtime.newErrnoECONNREFUSEDError();

        } catch (UnknownHostException e) {
            throw SocketUtils.sockerr(runtime, "initialize: name or service not known");

        } catch (IOException e) {
View Full Code Here

Examples of org.jruby.Ruby.newErrnoECONNREFUSEDError()

        } catch (UnknownHostException e) {
            throw SocketUtils.sockerr(runtime, "recvfrom: name or service not known");

        } catch (PortUnreachableException e) {
            throw runtime.newErrnoECONNREFUSEDError();

        } catch (IOException e) {
            throw SocketUtils.sockerr(runtime, "recvfrom: name or service not known");
        }
    }
View Full Code Here

Examples of org.jruby.Ruby.newErrnoECONNREFUSEDError()

        } catch (UnknownHostException e) {
            throw SocketUtils.sockerr(runtime, "recvfrom: name or service not known");

        } catch (PortUnreachableException e) {
            throw runtime.newErrnoECONNREFUSEDError();

        } catch (IOException e) {
            throw SocketUtils.sockerr(runtime, "recvfrom: name or service not known");
        }
    }
View Full Code Here

Examples of org.jruby.Ruby.newErrnoECONNREFUSEDError()

            } catch (NoRouteToHostException nrthe) {
                throw runtime.newErrnoEHOSTUNREACHError("SocketChannel.connect");

            } catch(ConnectException e) {
                throw runtime.newErrnoECONNREFUSEDError();

            } catch(UnknownHostException e) {
                throw SocketUtils.sockerr(runtime, "initialize: name or service not known");

            }
View Full Code Here

Examples of org.jruby.Ruby.newErrnoECONNREFUSEDError()

                throw SocketUtils.sockerr(runtime, "initialize: name or service not known");

            }

        } catch (ClosedChannelException cce) {
            throw runtime.newErrnoECONNREFUSEDError();

        } catch(BindException e) {
            throw runtime.newErrnoEADDRFromBindException(e, " on: " + localHost + ":" + String.valueOf(localPort));

        } catch(IOException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.