Package org.apache.juneau.common.utils
Interface Snippet
public interface Snippet
Identical to
Runnable
but the run method can throw stuff.
Allows you to pass in arbitrary snippets of code in fluent interfaces.
See
See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
Run arbitrary code and optionally throw an exception.
-
Method Details
-
run
Run arbitrary code and optionally throw an exception.- Throws:
Throwable
- Any throwable.
-