/*
 * DomUI Java User Interface library
 * Copyright (c) 2010 by Frits Jalvingh, Itris B.V.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 *
 * See the "sponsors" file for a list of supporters.
 *
 * The latest version of DomUI and related code, support and documentation
 * can be found at http://www.domui.org/
 * The contact for the project is Frits Jalvingh <jal@etc.to>.
 */
package to.etc.domui.trouble;

/**
 * Causes a 403 error to be sent back to the browser.
 *
 * @author <a href="mailto:jal@etc.to">Frits Jalvingh</a>
 * Created on Jun 4, 2008
 */
public class ForbiddenException extends RuntimeException {
	private String m_details;

	public ForbiddenException(String message, String details) {
		super(message);
		m_details = details;
	}

	public ForbiddenException(String message) {
		super(message);
	}

	public String getDetails() {
		return m_details;
	}
}

@@ -1194,34 +1194,51 @@
 lto:
-jal@etc.to%22%3EFrits Jalvingh
+wouter.van.vliet@itris.nl%22%3EWouter van Vliet
 %3C/a%3E
@@ -1260,15 +1260,16 @@
 Jun 
-4
+18
 , 20
-08
+14
 %0A */

Call 387, release 5.0 - Problem: Cryptic exception shows up in log file when a request is made for an internal resource directory (instead of internal resource file). Solution: Test wether a file or directory has been requested. In case of a request for a directory, return a HTTP 403 status.