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

com.societegenerale.commons.plugin.utils.ReflectionException Maven / Gradle / Ivy

package com.societegenerale.commons.plugin.utils;

import java.lang.reflect.InvocationTargetException;

class ReflectionException extends RuntimeException {
    private ReflectionException(Throwable throwable) {
        super(throwable.getMessage(), throwable);
    }

    static ReflectionException wrap(Exception throwable) {
        return throwable instanceof InvocationTargetException
                ? new ReflectionException(((InvocationTargetException) throwable).getTargetException())
                : new ReflectionException(throwable);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy