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

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

There is a newer version: 4.0.1
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy