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

cz.jalasoft.util.configuration.exception.InvalidPropertyMethod Maven / Gradle / Ivy

The newest version!
package cz.jalasoft.util.configuration.exception;

import java.lang.reflect.Method;

/**
 * @author Honza Lastovicka ([email protected])
 * @since 2016-07-26.
 */
public final class InvalidPropertyMethod extends RuntimeException {

    private final Method method;

    public InvalidPropertyMethod(Method m, String reason) {
        super(reason);

        this.method = m;
    }

    public Method method() {
        return method;
    }

    @Override
    public String getMessage() {
        return "An error occurred during introspecting an interface '" + method.getDeclaringClass() + "': " + super.getMessage();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy