
freak.core.modulesupport.SpecificModuleRequiredException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of freak-core Show documentation
Show all versions of freak-core Show documentation
Core library of the Free Evolutionary Algorithm Toolkit
/*
* 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