From f6a842d5a2f34682761825376be396491c5826b1 Mon Sep 17 00:00:00 2001 From: mdb Date: Mon, 1 Apr 2002 01:57:31 +0000 Subject: [PATCH] getTemplate() now throws more general ResourceException rather than NotFoundException. git-svn-id: https://samskivert.googlecode.com/svn/trunk@692 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- .../src/java/com/samskivert/webmacro/DispatcherServlet.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/samskivert/src/java/com/samskivert/webmacro/DispatcherServlet.java b/projects/samskivert/src/java/com/samskivert/webmacro/DispatcherServlet.java index fd34e91b..04c0fb67 100644 --- a/projects/samskivert/src/java/com/samskivert/webmacro/DispatcherServlet.java +++ b/projects/samskivert/src/java/com/samskivert/webmacro/DispatcherServlet.java @@ -1,5 +1,5 @@ // -// $Id: DispatcherServlet.java,v 1.12 2001/08/11 22:43:29 mdb Exp $ +// $Id: DispatcherServlet.java,v 1.13 2002/04/01 01:57:31 mdb Exp $ // // samskivert library - useful routines for java programs // Copyright (C) 2001 Michael Bayne @@ -233,7 +233,7 @@ public class DispatcherServlet extends WMServlet Template tmpl; try { tmpl = selectTemplate(ctx); - } catch (NotFoundException e) { + } catch (ResourceException e) { throw new HandlerException("Unable to load template: " + e); } @@ -318,7 +318,7 @@ public class DispatcherServlet extends WMServlet * @return The template to be used in generating the response. */ protected Template selectTemplate (WebContext ctx) - throws NotFoundException + throws ResourceException { // String path = cleanupURI(ctx.getRequest().getRequestURI()); String path = ctx.getRequest().getServletPath();