io.atlassian.util.concurrent.RuntimeExecutionException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of atlassian-util-concurrent Show documentation
Show all versions of atlassian-util-concurrent Show documentation
This project contains utility classes that are used by
various products and projects inside Atlassian and may have some
utility to the world at large.
package io.atlassian.util.concurrent;
import static java.util.Objects.requireNonNull;
import java.util.concurrent.ExecutionException;
/**
* Convenience class for re-throwing
* {@link java.util.concurrent.ExecutionException}.
*/
public class RuntimeExecutionException extends RuntimeException {
private static final long serialVersionUID = 1573022712345306212L;
/**
* Constructor for RuntimeExecutionException.
*
* @param cause a {@link java.util.concurrent.ExecutionException}.
*/
public RuntimeExecutionException(final ExecutionException cause) {
super(requireNonNull(cause, "cause"));
}
/**
* Constructor for RuntimeExecutionException.
*
* @param message a {@link java.lang.String}.
* @param cause a {@link java.util.concurrent.ExecutionException}.
*/
public RuntimeExecutionException(final String message, final ExecutionException cause) {
super(message, requireNonNull(cause, "cause"));
}
}