All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.atlassian.util.concurrent.RuntimeExecutionException Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 4.0.1
Show newest version
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"));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy