org.jruby
Class NativeException

java.lang.Object
  extended byorg.jruby.RubyObject
      extended byorg.jruby.RubyException
          extended byorg.jruby.NativeException
All Implemented Interfaces:
java.lang.Cloneable, IRubyObject

public class NativeException
extends RubyException


Nested Class Summary
 
Nested classes inherited from class org.jruby.RubyObject
RubyObject.Finalizer
 
Field Summary
static java.lang.String CLASS_NAME
           
 
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
NativeException(Ruby runtime, RubyClass rubyClass, java.lang.Throwable cause)
           
 
Method Summary
 IRubyObject backtrace()
           
 IRubyObject cause(Block unusedBlock)
           
static RubyClass createClass(Ruby runtime, RubyClass baseClass)
           
 void printBacktrace(java.io.PrintStream errorStream)
           
 
Methods inherited from class org.jruby.RubyException
createExceptionClass, doClone, exception, getBacktrace, initialize, inspect, newException, set_backtrace, setBacktraceFrames, to_s, 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, 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
 

Field Detail

CLASS_NAME

public static final java.lang.String CLASS_NAME
See Also:
Constant Field Values
Constructor Detail

NativeException

public NativeException(Ruby runtime,
                       RubyClass rubyClass,
                       java.lang.Throwable cause)
Method Detail

createClass

public static RubyClass createClass(Ruby runtime,
                                    RubyClass baseClass)

cause

public IRubyObject cause(Block unusedBlock)

backtrace

public IRubyObject backtrace()
Overrides:
backtrace in class RubyException

printBacktrace

public void printBacktrace(java.io.PrintStream errorStream)
Overrides:
printBacktrace in class RubyException


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