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

io.github.vipcxj.jasync.ng.spec.exceptions.JAsyncAfterResolvedException 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;

public class JAsyncAfterResolvedException extends JAsyncException {

    private static final long serialVersionUID = 5005851755253594929L;
    private final Object value;

    public JAsyncAfterResolvedException(Object value, String message) {
        super(message);
        this.value = value;
    }

    public JAsyncAfterResolvedException(Object value) {
        this(value, null);
    }

    public Object getValue() {
        return value;
    }

    @Override
    public String getMessage() {
        String message = super.getMessage();
        return message != null ? message : "Some errors happened when invoking the callbacks after the promise resolved. The errors are stored as suspended exceptions.";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy