| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry5.internal.plastic.SuccessMethodInvocationResult
public class SuccessMethodInvocationResult
A successful method invocation; one that did not throw a checked exception.
| Constructor Summary | |
|---|---|
| SuccessMethodInvocationResult(Object returnValue) | |
| Method Summary | ||
|---|---|---|
|  boolean | didThrowCheckedException()Returns true if the method invocation threw a checked exception. | |
| 
 | getCheckedException(Class<T> exceptionType)Retrieves the checked exception assignable to the indicated type, or null if the invocation did not throw a checked exception or the thrown exception is not assignable. | |
|  Object | getReturnValue()Returns the actual value returned from the method invocation, if any. | |
|  void | rethrow()If the invocation threw a checked exception, then this method throws that exception wrapped as the cause of a new RuntimeException. | |
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public SuccessMethodInvocationResult(Object returnValue)
| Method Detail | 
|---|
public Object getReturnValue()
MethodInvocationResult
getReturnValue in interface MethodInvocationResultpublic void rethrow()
MethodInvocationResult
rethrow in interface MethodInvocationResultpublic boolean didThrowCheckedException()
MethodInvocationResult
didThrowCheckedException in interface MethodInvocationResultpublic <T extends Throwable> T getCheckedException(Class<T> exceptionType)
MethodInvocationResult
getCheckedException in interface MethodInvocationResult| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||