org.kiwiproject.net.UncheckedURISyntaxException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kiwi Show documentation
Show all versions of kiwi Show documentation
Kiwi is a utility library. We really like Google's Guava, and also use Apache Commons.
But if they don't have something we need, and we think it is useful, this is where we put it.
package org.kiwiproject.net;
import static java.util.Objects.requireNonNull;
import java.net.URISyntaxException;
/**
* Wraps a {@link java.net.URISyntaxException} with an unchecked exception.
*/
@SuppressWarnings({"unused", "WeakerAccess"})
public class UncheckedURISyntaxException extends RuntimeException {
public UncheckedURISyntaxException(String message, URISyntaxException cause) {
super(message, requireNonNull(cause));
}
public UncheckedURISyntaxException(URISyntaxException cause) {
super(requireNonNull(cause));
}
@Override
public synchronized URISyntaxException getCause() {
return (URISyntaxException) super.getCause();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy