org.jruby.exceptions
Class ArgumentError

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.ArgumentError
All Implemented Interfaces:
java.io.Serializable

public class ArgumentError
extends RaiseException

Author:
jpetersen
See Also:
Serialized Form

Constructor Summary
ArgumentError(Ruby ruby, int got, int expected)
           
ArgumentError(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

ArgumentError

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

Parameters:
msg - the detail message.

ArgumentError

public ArgumentError(Ruby ruby,
                     int got,
                     int expected)


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.