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

freak.core.modulesupport.SpecificModuleRequiredException Maven / Gradle / Ivy

There is a newer version: 0.4.7
Show newest version
/*
 * This file is part of FrEAK. For licensing and copyright information
 * please see the file COPYING in the root directory of this
 * distribution or contact .
 */

package freak.core.modulesupport;

/**
 * Is thrown if a module requires another specific module to work.
 * 
 * @author Dirk
 */

public class SpecificModuleRequiredException extends UnsupportedEnvironmentException {

	private Class module;

	/**
	 * Constructs a new SpecificModuleRequiredException without a 
	 * detail message.
	 * 
	 * @param module the class of the required module. 
	 */
	public SpecificModuleRequiredException(Class module) {
		super();
		this.module = module;
	}

	/**
	 * Constructs a new SpecificModuleRequiredException with the 
	 * specified detail message.
	 * 
	 * @param module the class of the required module. 
	 * @param message the detail message.
	 */
	public SpecificModuleRequiredException(Class module, String message) {
		super(message);
		this.module = module;
	}
	
	/**
	 * @return the class of the module required by the module that threw the exception.
	 */
	public Class getModuleClass() {
		return module;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy