Top Fields Constructors Methods
org.jruby

public Class RubyKeyError

extends RubyIndexError
Class Inheritance
Annotations
@JRubyClass
name:KeyError
parent:IndexError
Imports
org.jruby.anno.JRubyMethod, .JRubyClass, org.jruby.ast.util.ArgsUtil, org.jruby.exceptions.KeyError, .RaiseException, org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject

Field Summary

Modifier and TypeField and Description
private IRubyObject
private IRubyObject
private static final String[]

Constructor Summary

AccessConstructor and Description
protected
RubyKeyError(Ruby runtime, RubyClass exceptionClass)

public
RubyKeyError(Ruby runtime, RubyClass exceptionClass, String message, IRubyObject recv, IRubyObject key)

Method Summary

Modifier and TypeMethod and Description
protected RaiseException
pack-priv static RubyClass
public IRubyObject
public IRubyObject
public IRubyObject
public IRubyObject
initialize(ThreadContext context, IRubyObject message, IRubyObject receiver, IRubyObject key)

private IRubyObject
initializeCommon(ThreadContext context, IRubyObject message, IRubyObject[] receiverKey)

public IRubyObject
key()
Deprecated since 10.0.

public IRubyObject
key(ThreadContext context)

public IRubyObject
receiver()
Deprecated since 10.0.

public IRubyObject

Field Detail

keyback to summary
private IRubyObject key
receiverback to summary
private IRubyObject receiver
VALID_KEYSback to summary
private static final String[] VALID_KEYS

Constructor Detail

RubyKeyErrorback to summary
protected RubyKeyError(Ruby runtime, RubyClass exceptionClass)
RubyKeyErrorback to summary
public RubyKeyError(Ruby runtime, RubyClass exceptionClass, String message, IRubyObject recv, IRubyObject key)

Method Detail

constructThrowableback to summary
protected RaiseException constructThrowable(String message)

Overrides org.jruby.RubyIndexError.constructThrowable.

Annotations
@Override
defineback to summary
pack-priv static RubyClass define(ThreadContext context, RubyClass IndexError)

Hides org.jruby.RubyIndexError.define.

initializeback to summary
public IRubyObject initialize(ThreadContext context)

Overrides org.jruby.RubyException.initialize.

Annotations
@JRubyMethod
initializeback to summary
public IRubyObject initialize(ThreadContext context, IRubyObject messageOrKwargs)

Overrides org.jruby.RubyException.initialize.

Annotations
@JRubyMethod
initializeback to summary
public IRubyObject initialize(ThreadContext context, IRubyObject message, IRubyObject kwargs)

Overrides org.jruby.RubyException.initialize.

Annotations
@JRubyMethod
initializeback to summary
public IRubyObject initialize(ThreadContext context, IRubyObject message, IRubyObject receiver, IRubyObject key)
Annotations
@JRubyMethod
initializeCommonback to summary
private IRubyObject initializeCommon(ThreadContext context, IRubyObject message, IRubyObject[] receiverKey)
keyback to summary
public IRubyObject key()

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
keyback to summary
public IRubyObject key(ThreadContext context)
Annotations
@JRubyMethod
receiverback to summary
public IRubyObject receiver()

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
receiverback to summary
public IRubyObject receiver(ThreadContext context)
Annotations
@JRubyMethod