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

refutils.ReflectionHelperException Maven / Gradle / Ivy

There is a newer version: 1.2.0
Show newest version
package refutils;

/**
 * Common Runtime Exception for all reflection methods
 */
public class ReflectionHelperException extends RuntimeException {
    public ReflectionHelperException(Exception e) {
        super(e);
    }

    public ReflectionHelperException(String msg, Exception ex) {
        super(msg, ex);
    }

    public static ReflectionHelperException createCannotInstantiateClass(Class clazz, Exception ex) {
        return new ReflectionHelperException(String.format("Cannot instantiate Class: %s constructor", clazz.getName()), ex);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy