Package org.apache.juneau.commons.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 TypeMethodDescriptionvoidrun()Run arbitrary code and optionally throw an exception.
-
Method Details
-
run
Run arbitrary code and optionally throw an exception.- Throws:
Throwable- Any throwable.
-