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

org.multiverse.templates.InvisibleCheckedException Maven / Gradle / Ivy

There is a newer version: 0.7.0
Show newest version
package org.multiverse.templates;

/**
 * An {@link RuntimeException} that wraps a checked exception. It is useful if a checked exception
 * is thrown, but can't be rethrown.
 *
 * @author Peter Veentjer
 */
public class InvisibleCheckedException extends RuntimeException {

    static final long serialVersionUID = 0;

    public InvisibleCheckedException(Exception cause) {
        super(cause);
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy