cz.jalasoft.util.configuration.exception.InvalidPropertyMethod Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of JalasoftUtils Show documentation
Show all versions of JalasoftUtils Show documentation
A collection of utility classes that might be useful.
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();
}
}