Class SuccessMethodInvocationResult
java.lang.Object
org.apache.tapestry5.internal.plastic.SuccessMethodInvocationResult
- All Implemented Interfaces:
MethodInvocationResult
A successful method invocation; one that did not throw a checked exception.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the method invocation threw a checked exception.<T extends Throwable>
TgetCheckedException(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.Returns the actual value returned from the method invocation, if any.voidrethrow()If the invocation threw a checked exception, then this method throws that exception wrapped as the cause of a new RuntimeException.
-
Constructor Details
-
SuccessMethodInvocationResult
-
-
Method Details
-
getReturnValue
Description copied from interface:MethodInvocationResultReturns the actual value returned from the method invocation, if any. This will be null if the invocation threw a checked exception, or the method itself is void.- Specified by:
getReturnValuein interfaceMethodInvocationResult
-
rethrow
Description copied from interface:MethodInvocationResultIf the invocation threw a checked exception, then this method throws that exception wrapped as the cause of a new RuntimeException. Otherwise, this method does nothing.- Specified by:
rethrowin interfaceMethodInvocationResult
-
didThrowCheckedException
Description copied from interface:MethodInvocationResultReturns true if the method invocation threw a checked exception.- Specified by:
didThrowCheckedExceptionin interfaceMethodInvocationResult
-
getCheckedException
Description copied from interface:MethodInvocationResultRetrieves 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.- Specified by:
getCheckedExceptionin interfaceMethodInvocationResult
-