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

io.polaris.core.err.InvocationException Maven / Gradle / Ivy

There is a newer version: 3.2.1
Show newest version
package io.polaris.core.err;

/**
 * @author Qt
 * @since 1.8,  Aug 06, 2023
 */
public class InvocationException extends RuntimeException {
	private static final long serialVersionUID = 1L;

	public InvocationException(Throwable cause) {
		super(cause instanceof InvocationException ? cause.getCause() : cause);
	}

	@Override
	public synchronized Throwable getCause() {
		return super.getCause();
	}

	public static InvocationException of(Throwable e) {
		return e instanceof InvocationException ? (InvocationException) e : new InvocationException(e);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy