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

package fr.univrennes1.cri.util.exceptions;

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