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

org.openlca.util.Exceptions Maven / Gradle / Ivy

There is a newer version: 2.2.1
Show newest version
package org.openlca.util;

public final class Exceptions {

	private Exceptions() {
	}

	/**
	 * Wraps the given exception into a runtime exception and throws it.
	 */
	public static void unchecked(String msg, Throwable cause) {
		throw new RuntimeException(msg, cause);
	}

	/**
	 * Wraps the given exception into a runtime exception and throws it.
	 */
	public static void unchecked(Throwable cause) {
		throw new RuntimeException(cause);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy