public static RubyException newNoMethodError(IRubyObject recv, IRubyObject message, IRubyObject name, IRubyObject args) { RubyClass klass = (RubyClass)recv; RubyException newError = (RubyException) klass.allocate(); newError.callInit(message, name, args, Block.NULL_BLOCK); return newError; }
private static RubyException newNameError(IRubyObject recv, IRubyObject[] args) { final RubyClass klass = (RubyClass) recv; RubyException newError = (RubyException) klass.allocate(); newError.callInit(args, Block.NULL_BLOCK); return newError; }
public static RubyException newNoMethodError(IRubyObject recv, IRubyObject message, IRubyObject name, IRubyObject args) { RubyClass klass = (RubyClass)recv; RubyException newError = (RubyException) klass.allocate(); newError.callInit(message, name, args, Block.NULL_BLOCK); return newError; }
private static RubyException newNameError(IRubyObject recv, IRubyObject[] args) { final RubyClass klass = (RubyClass) recv; RubyException newError = (RubyException) klass.allocate(); newError.callInit(args, Block.NULL_BLOCK); return newError; }
@JRubyMethod(name = "exception", rest = true, meta = true) public static RubyException newRubyNameError(IRubyObject recv, IRubyObject[] args) { RubyClass klass = (RubyClass)recv; RubyException newError = (RubyException) klass.allocate(); newError.callInit(args, Block.NULL_BLOCK); return newError; }
@JRubyMethod(name = "exception", rest = true, meta = true) public static RubyException newRubyNameError(IRubyObject recv, IRubyObject[] args) { RubyClass klass = (RubyClass)recv; RubyException newError = (RubyException) klass.allocate(); newError.callInit(args, Block.NULL_BLOCK); return newError; }