Package org.apache.dubbo.common.function
Interface ThrowableAction
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A function interface for action with
Throwable- Since:
- 2.7.5
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes the actionstatic voidexecute(ThrowableAction action) ExecutesThrowableAction
-
Method Details
-
execute
Executes the action- Throws:
Throwable- if met with error
-
execute
ExecutesThrowableAction- Parameters:
action-ThrowableAction- Throws:
RuntimeException- wrapExceptiontoRuntimeException
-