|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
edu.rit.m2mi.M2MIRuntimeException
edu.rit.m2mi.InvalidMethodException
public class InvalidMethodException
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.
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 |
---|
public InvalidMethodException()
public InvalidMethodException(String msg)
msg
- Detail message.public InvalidMethodException(Throwable exc)
exc
- Chained exception.public InvalidMethodException(String msg, Throwable exc)
msg
- Detail message.exc
- Chained exception.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |