au.net.causal.maven.plugins.boxdb.ExceptionalConsumer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of boxdb-maven-plugin Show documentation
Show all versions of boxdb-maven-plugin Show documentation
Maven plugin to start databases using Docker and VMs
package au.net.causal.maven.plugins.boxdb;
/**
* An operation that takes a single argument and does not return anything, possibly throwing a checked exception.
*
* @param the argument type.
* @param the exception type.
*
* @see java.util.function.Consumer
*/
@FunctionalInterface
public interface ExceptionalConsumer
{
/**
* Performs this operation on the given argument.
*
* @param t the input argument
*
* @throws E if an error occurs.
*/
void accept(T t)
throws E;
}