org.jruby.exceptions
Class TypeError

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
                      extended byorg.jruby.exceptions.TypeError
All Implemented Interfaces:
java.io.Serializable

public class TypeError
extends RaiseException

Author:
jpetersen
See Also:
Serialized Form

Constructor Summary
TypeError(Ruby ruby, IRubyObject receivedObject, RubyClass expectedType)
           
TypeError(Ruby ruby, java.lang.String msg)
          Constructs an RubyTypeException with the specified detail message.
 
Methods inherited from class org.jruby.exceptions.RaiseException
createBacktrace, fillInStackTrace, getException, setException
 
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

TypeError

public TypeError(Ruby ruby,
                 java.lang.String msg)
Constructs an RubyTypeException with the specified detail message.

Parameters:
msg - the detail message.

TypeError

public TypeError(Ruby ruby,
                 IRubyObject receivedObject,
                 RubyClass expectedType)


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.