org.jruby
Class RubyNameError

java.lang.Object
  extended by org.jruby.RubyObject
      extended by org.jruby.RubyException
          extended by org.jruby.RubyNameError
All Implemented Interfaces:
java.lang.Cloneable, IRubyObject
Direct Known Subclasses:
RubyNoMethodError

public class RubyNameError
extends RubyException

Author:
Anders Bengtsson

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jruby.RubyObject
RubyObject.Finalizer
 
Field Summary
 
Fields inherited from class org.jruby.RubyException
message, TRACE_HEAD, TRACE_MAX, TRACE_TAIL
 
Fields inherited from class org.jruby.RubyObject
instanceVariables, isTrue, metaClass, NEVER, OBJECT_ALLOCATOR
 
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject
NULL_ARRAY
 
Constructor Summary
protected RubyNameError(Ruby runtime, RubyClass exceptionClass)
           
  RubyNameError(Ruby runtime, RubyClass exceptionClass, java.lang.String message)
           
  RubyNameError(Ruby runtime, RubyClass exceptionClass, java.lang.String message, java.lang.String name)
           
 
Method Summary
static RubyClass createNameErrorClass(Ruby runtime, RubyClass standardErrorClass)
           
 IRubyObject initialize(IRubyObject[] args, Block block)
           
 IRubyObject name()
           
static RubyException newRubyNameError(IRubyObject recv, IRubyObject[] args)
           
 IRubyObject to_s()
           
 
Methods inherited from class org.jruby.RubyException
backtrace, createExceptionClass, doClone, exception, getBacktrace, inspect, newException, printBacktrace, set_backtrace, setBacktraceFrames, to_str
 
Methods inherited from class org.jruby.RubyObject
addFinalizer, anyToString, asString, asSymbol, attachToObjectSpace, callInit, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodMissing, callMethodMissing, callSuper, checkArrayType, checkFrozen, checkStringType, compilerCallMethod, compilerCallMethodWithIndex, convertToArray, convertToFloat, convertToHash, convertToInteger, convertToString, convertToType, convertToType, convertToType, convertToTypeWithCheck, createObjectClass, dataGetStruct, dataWrapStruct, display, dup, eql, eqlInternal, equal, equalInternal, equals, evalSimple, evalUnder, evalWithBinding, extend, freeze, frozen, getInstanceVariable, getInstanceVariables, getInstanceVariablesSnapshot, getJavaClass, getMetaClass, getNativeTypeIndex, getRuntime, getSingletonClass, getSingletonClassClone, getType, hash, hashCode, id_deprecated, id, infectBy, inherited, initCopy, initialize_copy, instance_eval, instance_exec, instance_of, instance_variable_get, instance_variable_set, instance_variables, instanceVariableNames, isFalse, isFrozen, isImmediate, isKindOf, isNil, isSingleton, isTaint, isTrue, kind_of, makeMetaClass, match, method, methods, nil_p, obj_equal, private_methods, protected_methods, public_methods, puts, rbClone, remove_instance_variable, removeFinalizers, removeInstanceVariable, respond_to, respondsTo, safeGetInstanceVariables, safeHasInstanceVariables, send, setFrozen, setInstanceVariable, setInstanceVariable, setInstanceVariables, setMetaClass, setTaint, singleton_methods, specificEval, taint, tainted, testFrozen, toString, trueFalseNil, trueFalseNil, type_deprecated, type, untaint
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RubyNameError

protected RubyNameError(Ruby runtime,
                        RubyClass exceptionClass)

RubyNameError

public RubyNameError(Ruby runtime,
                     RubyClass exceptionClass,
                     java.lang.String message)

RubyNameError

public RubyNameError(Ruby runtime,
                     RubyClass exceptionClass,
                     java.lang.String message,
                     java.lang.String name)
Method Detail

createNameErrorClass

public static RubyClass createNameErrorClass(Ruby runtime,
                                             RubyClass standardErrorClass)

newRubyNameError

public static RubyException newRubyNameError(IRubyObject recv,
                                             IRubyObject[] args)

initialize

public IRubyObject initialize(IRubyObject[] args,
                              Block block)
Overrides:
initialize in class RubyException

to_s

public IRubyObject to_s()
Overrides:
to_s in class RubyException

name

public IRubyObject name()


Copyright © 2002-2007 JRuby Team. All Rights Reserved.