org.jruby
Class RubyException
java.lang.Object
org.jruby.RubyObject
org.jruby.RubyException
- All Implemented Interfaces:
- java.lang.Cloneable, IRubyObject
- Direct Known Subclasses:
- NativeException, RubyIconv.RubyFailure, RubyLocalJumpError, RubyNameError
- public class RubyException
- extends RubyObject
- Author:
- jpetersen
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, callMethodMissingIfNecessary, 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 |
message
public IRubyObject message
TRACE_HEAD
public static final int TRACE_HEAD
- See Also:
- Constant Field Values
TRACE_TAIL
public static final int TRACE_TAIL
- See Also:
- Constant Field Values
TRACE_MAX
public static final int TRACE_MAX
- See Also:
- Constant Field Values
RubyException
protected RubyException(Ruby runtime,
RubyClass rubyClass)
RubyException
public RubyException(Ruby runtime,
RubyClass rubyClass,
java.lang.String message)
createExceptionClass
public static RubyClass createExceptionClass(Ruby runtime)
newException
public static RubyException newException(Ruby runtime,
RubyClass excptnClass,
java.lang.String msg)
setBacktraceFrames
public void setBacktraceFrames(Frame[] backtraceFrames)
getBacktrace
public IRubyObject getBacktrace()
initialize
public IRubyObject initialize(IRubyObject[] args,
Block block)
- Overrides:
initialize
in class RubyObject
backtrace
public IRubyObject backtrace()
set_backtrace
public IRubyObject set_backtrace(IRubyObject obj)
exception
public RubyException exception(IRubyObject[] args)
to_s
public IRubyObject to_s()
- Overrides:
to_s
in class RubyObject
to_str
public IRubyObject to_str()
inspect
public IRubyObject inspect()
- inspects an object and return a kind of debug information
- Specified by:
inspect
in interface IRubyObject
- Overrides:
inspect
in class RubyObject
- Returns:
- A RubyString containing the debug information.
printBacktrace
public void printBacktrace(java.io.PrintStream errorStream)
doClone
protected IRubyObject doClone()
- Overrides:
doClone
in class RubyObject
Copyright © 2002-2007 JRuby Team. All Rights Reserved.