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

freak.core.modulesupport.IncompatibleModulePropertyException 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 is incompatible to the property of another module 
 * inside the current schedule.
 * 
 * @author Dirk
 */

public class IncompatibleModulePropertyException extends IncompatibleModuleException {

	private String property;
	
	/**
	 * Constructs a new IncompatibleModuleException without a 
	 * detail message.
	 */
	public IncompatibleModulePropertyException(Module module, String property) {
		super(module);
		this.property = property;
	}

	/**
	 * Constructs a new IncompatibleModuleException with the 
	 * specified detail message.
	 * 
	 * @param message the detail message.
	 */
	public IncompatibleModulePropertyException(Module module, String property, String message) {
		super(module, message);
		this.property = property;
	}

	/**
	 * @return the property inside the module that caused the exception.
	 */
	public String getProperty() {
		return property;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy