hu.akarnokd.rxjava2.util.SneakyThrows Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rxjava2-extensions Show documentation
Show all versions of rxjava2-extensions Show documentation
rxjava2-extensions developed by David Karnok
package hu.akarnokd.rxjava2.util;
/**
* Utility class to throw arbitrary Throwables.
*/
public final class SneakyThrows {
private SneakyThrows() {
throw new IllegalStateException("No instances!");
}
@SuppressWarnings("unchecked")
public static E justThrow(Throwable error) throws E {
throw (E)error;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy