Package org.jruby.exceptions

Examples of org.jruby.exceptions.RaiseException


    public RaiseException newIllegalSequence(String message) {
        return newRaiseException(fastGetClass("Iconv").getClass("IllegalSequence"), message);
    }

    public RaiseException newNoMethodError(String message, String name, IRubyObject args) {
        return new RaiseException(new RubyNoMethodError(this, getNoMethodError(), message, name, args), true);
    }
View Full Code Here


            } else if (isDebug()) {
                LOG.debug(origException.getMessage(), origException);
            }
        }
       
        return new RaiseException(new RubyNameError(
                this, getNameError(), message, name), false);
    }
View Full Code Here

        return new RaiseException(new RubyNameError(
                this, getNameError(), message, name), false);
    }

    public RaiseException newLocalJumpError(RubyLocalJumpError.Reason reason, IRubyObject exitValue, String message) {
        return new RaiseException(new RubyLocalJumpError(this, getLocalJumpError(), message, reason, exitValue), true);
    }
View Full Code Here

        }
        return newRaiseException(getSystemStackError(), message);
    }

    public RaiseException newSystemExit(int status) {
        return new RaiseException(RubySystemExit.newInstance(this, status));
    }
View Full Code Here

     * @param exceptionClass
     * @param message
     * @return
     */
    public RaiseException newRaiseException(RubyClass exceptionClass, String message) {
        return new RaiseException(this, exceptionClass, message, true);
    }
View Full Code Here

     * @param message
     * @return
     */
    private RaiseException newLightweightErrnoException(RubyClass exceptionClass, String message) {
        if (RubyInstanceConfig.ERRNO_BACKTRACE) {
            return new RaiseException(this, exceptionClass, message, true);
        } else {
            return new RaiseException(this, exceptionClass, ERRNO_BACKTRACE_MESSAGE, RubyArray.newEmptyArray(this), true);
        }
    }
View Full Code Here

                new IRubyObject[]{
                    runtime.newString(message)
                },
                Block.NULL_BLOCK);

        return new RaiseException(doSqlError);
    }
View Full Code Here

                    runtime.newString(query),
                    (uri != null) ? runtime.newString(uri) : runtime.getNil()
                },
                Block.NULL_BLOCK);

        return new RaiseException(doSqlError);
    }
View Full Code Here

        return new RaiseException(doSqlError);
    }

    public static RaiseException newError(Ruby runtime, RubyClass errorClass, String message) {
        return new RaiseException(runtime, errorClass, message, true);
    }
View Full Code Here

        return context.runtime.getNil();
    }

    public synchronized void checkShutdown(ThreadContext context) {
        if (entries == null) {
            throw new RaiseException(context.runtime, context.runtime.getThreadError(), "queue shut down", false);
        }
    }
View Full Code Here

TOP

Related Classes of org.jruby.exceptions.RaiseException

Copyright © 2018 www.massapicom. 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.