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

io.github.vipcxj.jasync.ng.spec.exceptions.JAsyncCompositeException Maven / Gradle / Ivy

Go to download

JAsync implements Async-Await fashion for Java just like es and c#. This library provide the spec of all public api.

There is a newer version: 1.0.17
Show newest version
package io.github.vipcxj.jasync.ng.spec.exceptions;

import io.github.vipcxj.jasync.ng.spec.JPromise;

import java.util.List;
import java.util.Map;

public class JAsyncCompositeException extends JAsyncException {
    private final List errors;

    public JAsyncCompositeException(List errors) {
        this.errors = errors;
    }

    @Override
    public String getMessage() {
        return "All promises are rejected. Please use JAsyncCompositeException.getErrors() to inspect the real errors.";
    }

    public List getErrors() {
        return errors;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy