com.goikosoft.reflection.ReflectionException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of reflection-utils Show documentation
Show all versions of reflection-utils Show documentation
Reflection utils. Simple envelope for reflection simplification
The newest version!
package com.goikosoft.reflection;
/**
* Common superclass of exceptions thrown by reflective operations in
* ReflectionUtils
*
* @author Dario Goikoetxea
*
*/
public class ReflectionException extends ReflectiveOperationException {
/**
*
*/
private static final long serialVersionUID = -1556588727709207417L;
public ReflectionException() {
super();
}
public ReflectionException(String message, Throwable cause) {
super(message, cause);
}
public ReflectionException(String message) {
super(message);
}
public ReflectionException(Throwable cause) {
super(cause);
}
public String getMessage() {
String causa;
if(this.getCause()!=null) causa = ". Causa: "+getCause();
else causa="";
return getOnlyMsg() + causa;
}
protected String getOnlyMsg() {
return super.getMessage();
}
}