
io.github.mentegy.s3.channels.util.ExceptionUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of s3-channels Show documentation
Show all versions of s3-channels Show documentation
Java NIO Channels implementations for S3
The newest version!
package io.github.mentegy.s3.channels.util;
import java.util.concurrent.ExecutionException;
public final class ExceptionUtils {
public static RuntimeException mapExecutionException(Exception e) {
if (e instanceof ExecutionException &&
e.getCause() != null &&
e.getCause() instanceof RuntimeException) {
throw (RuntimeException) e.getCause();
} else {
throw new RuntimeException(e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy