package org.esupportail.portal.utils.injac.injacSpacesCreation.exception;

/*
 * WrongPathException.java,v 1.0 16 juil. 2004
 * Copyright (c) 2004 Esup Portail (www.esup-portail.org)
 * Classes: WrongPathException.java
 * Original Author: tbellemb
 */
/**
 * @author : tbellemb
 * date : 16 juil. 2004
 * Exception throwned when trying to access a ressource that does not exist
 */
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	
}
