org.jruby.exceptions
Class RaiseException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.jruby.exceptions.JumpException
                  extended byorg.jruby.exceptions.RaiseException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ArgumentError, EOFError, ErrnoError, FrozenError, IndexError, IOError, LoadError, NameError, NotImplementedError, RangeError, RegexpError, SecurityError, SystemCallError, SystemExit, ThreadError, TypeError

public class RaiseException
extends JumpException

Version:
$Revision: 1.4 $
Author:
jpetersen
See Also:
Serialized Form

Constructor Summary
RaiseException(RubyException actException)
           
RaiseException(Ruby ruby, RubyClass excptnClass, java.lang.String msg)
           
RaiseException(Ruby ruby, java.lang.String excptnClassName, java.lang.String msg)
           
 
Method Summary
static RubyArray createBacktrace(Ruby ruby, int level)
          Create an Array with backtrace information.
 java.lang.Throwable fillInStackTrace()
          This method don't do anything for performance reasons.
 RubyException getException()
          Gets the exception
protected  void setException(RubyException newException)
          Sets the exception
 
Methods inherited from class org.jruby.exceptions.JumpException
originalFillInStackTrace
 
Methods inherited from class java.lang.Throwable
getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RaiseException

public RaiseException(RubyException actException)

RaiseException

public RaiseException(Ruby ruby,
                      RubyClass excptnClass,
                      java.lang.String msg)

RaiseException

public RaiseException(Ruby ruby,
                      java.lang.String excptnClassName,
                      java.lang.String msg)
Method Detail

fillInStackTrace

public java.lang.Throwable fillInStackTrace()
Description copied from class: JumpException
This method don't do anything for performance reasons.

Overrides:
fillInStackTrace in class JumpException
See Also:
Throwable.fillInStackTrace()

createBacktrace

public static RubyArray createBacktrace(Ruby ruby,
                                        int level)
Create an Array with backtrace information. MRI: eval.c - backtrace


getException

public RubyException getException()
Gets the exception

Returns:
Returns a RubyException

setException

protected void setException(RubyException newException)
Sets the exception

Parameters:
newException - The exception to set


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.