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

io.github.sinri.keel.facade.async.FailedInParallel Maven / Gradle / Ivy

Go to download

A website framework with VERT.X for ex-PHP-ers, exactly Ark Framework Users.

The newest version!
package io.github.sinri.keel.facade.async;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.util.List;

/**
 * @since 2.9.4
 */
public class FailedInParallel extends Exception {
    private final @Nonnull List causes;

    public FailedInParallel(@Nonnull List causes) {
        super("Totally " + causes.size() + " cause(s).");
        this.causes = causes;
    }

    public @Nonnull List getCauses() {
        return causes;
    }

    public @Nullable Throwable getCauseAt(int i) {
        return causes.get(i);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy