org.jruby
Class RubyException

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

public class RubyException
extends RubyObject

Version:
$Revision: 1.8 $
Author:
jpetersen

Field Summary
 IRubyObject message
           
 
Fields inherited from class org.jruby.RubyObject
runtime
 
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject
NULL_ARRAY
 
Method Summary
 RubyArray backtrace()
           
static RubyClass createExceptionClass(Ruby ruby)
           
 RubyException exception(IRubyObject[] args)
           
 IRubyObject initialize(IRubyObject[] args)
           
 RubyString inspect()
          inspects an object and return a kind of debug information
static RubyException newException(Ruby ruby, RubyClass excptnClass, java.lang.String msg)
           
static RubyException newInstance(IRubyObject recv, IRubyObject[] args)
           
 RubyArray set_backtrace(IRubyObject obj)
           
 RubyString to_s()
           
 
Methods inherited from class org.jruby.RubyObject
argCount, asSymbol, callbackFactory, callInit, callMethod, callMethod, callMethod, checkSafeString, convertToString, convertToType, convertType, createObjectClass, defineSingletonMethod, display, dup, equal, equals, eval, eval, evalUnder, extend, extendObject, freeze, frozen, getInstanceVariable, getInstanceVariables, getJavaClass, getMetaClass, getRuntime, getSingletonClass, getType, hash, hashCode, hasInstanceVariable, id, infectBy, instance_eval, instance_of, instance_variables, instanceVariableNames, isFalse, isFrozen, isKindOf, isNil, isTaint, isTrue, kind_of, makeMetaClass, marshalTo, method_missing, method, methods, nilObject, private_methods, protected_methods, rbClone, removeInstanceVariable, respond_to, respondsTo, send, setFrozen, setInstanceVariable, setInstanceVariable, setInstanceVariables, setMetaClass, setTaint, setupClone, singleton_methods, singletonMethodsAllowed, specificEval, taint, tainted, to_a, toString, type, untaint
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

message

public IRubyObject message
Method Detail

createExceptionClass

public static RubyClass createExceptionClass(Ruby ruby)

newException

public static RubyException newException(Ruby ruby,
                                         RubyClass excptnClass,
                                         java.lang.String msg)

newInstance

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

initialize

public IRubyObject initialize(IRubyObject[] args)

backtrace

public RubyArray backtrace()

set_backtrace

public RubyArray set_backtrace(IRubyObject obj)

exception

public RubyException exception(IRubyObject[] args)

to_s

public RubyString to_s()
Overrides:
to_s in class RubyObject

inspect

public RubyString 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.


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.