/**
 * @author Thomas Bellembois
 * @version
 * 
 * Creation date : 07 jan. 2005
 * Last modification :
 */

package fr.univrennes1.cri.util.exceptions;

public class ConfigException extends Exception{
	
	String throwingClass;  // class throwing the exception
	String throwingMethod; // method throwing the exception
	String comment;        // comment
	
	public ConfigException(){
		this.comment = "";
		this.throwingClass = "";
		this.throwingMethod = "";		
	}// ConfigException
	
	public ConfigException(String throwingClass, String throwingMethod, String comment){
		this.comment = comment;
		this.throwingClass = throwingClass;
		this.throwingMethod = throwingMethod;		
	}// ConfigException
	
	public String toString(){
		String resultString;
		resultString = "ConfigException handled\n";
		resultString+= ">Class "+throwingClass+"\n";
		resultString+= ">Method "+throwingMethod+"\n";
		resultString+= ">>"+comment+"\n";
		return resultString; 
	}// toString
	
}// ConfigException
