edu.rit.m2mi
Class InvalidMethodException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by edu.rit.m2mi.M2MIRuntimeException
                  extended by edu.rit.m2mi.InvalidMethodException
All Implemented Interfaces:
Serializable

public class InvalidMethodException
extends M2MIRuntimeException

Class InvalidMethodException encapsulates an exception thrown when M2MI attempts to synthesize proxies for a method that does not conform to M2MI's requirements. All methods invoked by M2MI must be declared in an interface, must return void, and must throw no checked exceptions.

Class InvalidMethodException is an unchecked RuntimeException because programs that violate the above requirements should never be written in the first place.

See Also:
Serialized Form

Constructor Summary
InvalidMethodException()
          Construct a new invalid method exception with no detail message and no chained exception.
InvalidMethodException(String msg)
          Construct a new invalid method exception with the given detail message and no chained exception.
InvalidMethodException(String msg, Throwable exc)
          Construct a new invalid method exception with the given detail message and the given chained exception.
InvalidMethodException(Throwable exc)
          Construct a new invalid method exception with no detail message and the given chained exception.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

InvalidMethodException

public InvalidMethodException()
Construct a new invalid method exception with no detail message and no chained exception.


InvalidMethodException

public InvalidMethodException(String msg)
Construct a new invalid method exception with the given detail message and no chained exception.

Parameters:
msg - Detail message.

InvalidMethodException

public InvalidMethodException(Throwable exc)
Construct a new invalid method exception with no detail message and the given chained exception.

Parameters:
exc - Chained exception.

InvalidMethodException

public InvalidMethodException(String msg,
                              Throwable exc)
Construct a new invalid method exception with the given detail message and the given chained exception.

Parameters:
msg - Detail message.
exc - Chained exception.


Copyright © 2001-2006 by Alan Kaminsky. All rights reserved. Send comments to ark­@­cs.rit.edu.