Interface Executable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An class for executing code while allowing throwing checked exceptions. It is therefore similar to
Runnable
,
but allows checked exceptions to be thrown in the execution block.-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Executes some logic, or throws an exception if unable to do so.
-
Method Details
-
execute
Executes some logic, or throws an exception if unable to do so.- Throws:
Exception
- If there is an issue while executing.
-