Examples of newErrnoEACCESError()


Examples of org.jruby.Ruby.newErrnoEACCESError()

        } catch(SocketException e) {
            String msg = e.getMessage();

            if(msg.indexOf("Permission denied") != -1) {
                throw runtime.newErrnoEACCESError("bind(2)");
            } else {
                throw SocketUtils.sockerr(runtime, "initialize: name or service not known");
            }

        } catch(IOException e) {
View Full Code Here

Examples of org.jruby.Ruby.newErrnoEACCESError()

        } catch(SocketException e) {
            String msg = e.getMessage();

            if(msg.indexOf("Permission denied") != -1) {
                throw runtime.newErrnoEACCESError("bind(2)");
            } else {
                throw SocketUtils.sockerr(runtime, "initialize: name or service not known");
            }

        } catch(IOException e) {
View Full Code Here

Examples of org.jruby.Ruby.newErrnoEACCESError()

                    ptr.flags = OpenFile.ioModestrFmode(runtime, m);
                    trunc = m.charAt(0) == 'w';
                }
                string = args[0].convertToString();
                if ((ptr.flags & OpenFile.WRITABLE) != 0 && string.isFrozen()) {
                    throw runtime.newErrnoEACCESError("Permission denied");
                }
                if (trunc) {
                    string.resize(0);
                }
                break;
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.