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

com.goikosoft.reflection.ReflectionException Maven / Gradle / Ivy

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();
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy