sry, meant off list, can ne ignored On Mon, Mar 9, 2009 at 2:55 PM, Ard Schrijvers <[email protected]> wrote: > Waarom extends ContainerNoMatchException niet ContainerException? Dan > hoef je alleen maar de HstRequestProcessorImpl en de > ContextResolvingValve aan te passen. Het is niet nodig om overal > 'throws ContainerException ,ContainerNoMatchException ' te zetten... > > Heb je hier een speciale reden voor? > > Ard > > On Mon, Mar 9, 2009 at 10:29 AM, ssmith SVN <[email protected]> wrote: >> Revision: 16779 >> Author: ssmith >> Date: 2009-03-09 10:29:31 +0100 (Mon, 09 Mar 2009) >> Log Message: >> ----------- >> HIPTUTORIAL-14 adding nomatch exception >> >> Modified Paths: >> -------------- >> >> ecm/site-toolkit/trunk/api/src/main/java/org/hippoecm/hst/core/container/HstRequestProcessor.java >> >> ecm/site-toolkit/trunk/api/src/main/java/org/hippoecm/hst/core/container/Pipeline.java >> >> ecm/site-toolkit/trunk/api/src/main/java/org/hippoecm/hst/core/container/Valve.java >> >> ecm/site-toolkit/trunk/api/src/main/java/org/hippoecm/hst/core/container/ValveContext.java >> >> Added Paths: >> ----------- >> >> ecm/site-toolkit/trunk/api/src/main/java/org/hippoecm/hst/core/container/ContainerNoMatchException.java >> >> Added: >> ecm/site-toolkit/trunk/api/src/main/java/org/hippoecm/hst/core/container/ContainerNoMatchException.java >> =================================================================== >> --- >> ecm/site-toolkit/trunk/api/src/main/java/org/hippoecm/hst/core/container/ContainerNoMatchException.java >> (rev 0) >> +++ >> ecm/site-toolkit/trunk/api/src/main/java/org/hippoecm/hst/core/container/ContainerNoMatchException.java >> 2009-03-09 09:29:31 UTC (rev 16779) >> @@ -0,0 +1,38 @@ >> +/* >> + * Copyright 2008 Hippo. >> + * >> + * Licensed under the Apache License, Version 2.0 (the "License"); >> + * you may not use this file except in compliance with the License. >> + * You may obtain a copy of the License at >> + * >> + * http://www.apache.org/licenses/LICENSE-2.0 >> + * >> + * Unless required by applicable law or agreed to in writing, software >> + * distributed under the License is distributed on an "AS IS" BASIS, >> + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. >> + * See the License for the specific language governing permissions and >> + * limitations under the License. >> + */ >> +package org.hippoecm.hst.core.container; >> + >> +public class ContainerNoMatchException extends Exception { >> + >> + private static final long serialVersionUID = 1L; >> + >> + public ContainerNoMatchException() { >> + super(); >> + } >> + >> + public ContainerNoMatchException(String message) { >> + super(message); >> + } >> + >> + public ContainerNoMatchException(Throwable nested) { >> + super(nested); >> + } >> + >> + public ContainerNoMatchException(String msg, Throwable nested) { >> + super(msg, nested); >> + } >> + >> +} >> >> >> Property changes on: >> ecm/site-toolkit/trunk/api/src/main/java/org/hippoecm/hst/core/container/ContainerNoMatchException.java >> ___________________________________________________________________ >> Added: svn:mime-type >> + text/plain >> >> Modified: >> ecm/site-toolkit/trunk/api/src/main/java/org/hippoecm/hst/core/container/HstRequestProcessor.java >> =================================================================== >> --- >> ecm/site-toolkit/trunk/api/src/main/java/org/hippoecm/hst/core/container/HstRequestProcessor.java >> 2009-03-09 09:28:52 UTC (rev 16778) >> +++ >> ecm/site-toolkit/trunk/api/src/main/java/org/hippoecm/hst/core/container/HstRequestProcessor.java >> 2009-03-09 09:29:31 UTC (rev 16779) >> @@ -31,7 +31,8 @@ >> * @param servletRequest the servletRequest of the HST request >> * @param servletResponse the servletResponse of the HST response >> * @throws ContainerException >> + * @throws ContainerNoMatchException >> */ >> - void processRequest(ServletConfig servletConfig, ServletRequest >> servletRequest, ServletResponse servletResponse) throws ContainerException; >> + void processRequest(ServletConfig servletConfig, ServletRequest >> servletRequest, ServletResponse servletResponse) throws ContainerException, >> ContainerNoMatchException; >> >> } >> >> Modified: >> ecm/site-toolkit/trunk/api/src/main/java/org/hippoecm/hst/core/container/Pipeline.java >> =================================================================== >> --- >> ecm/site-toolkit/trunk/api/src/main/java/org/hippoecm/hst/core/container/Pipeline.java >> 2009-03-09 09:28:52 UTC (rev 16778) >> +++ >> ecm/site-toolkit/trunk/api/src/main/java/org/hippoecm/hst/core/container/Pipeline.java >> 2009-03-09 09:29:31 UTC (rev 16779) >> @@ -24,11 +24,11 @@ >> >> void initialize() throws ContainerException; >> >> - void beforeInvoke(ServletConfig servletConfig, ServletRequest >> servletRequest, ServletResponse servletResponse) throws ContainerException; >> + void beforeInvoke(ServletConfig servletConfig, ServletRequest >> servletRequest, ServletResponse servletResponse) throws ContainerException, >> ContainerNoMatchException; >> >> - void invoke(ServletConfig servletConfig, ServletRequest servletRequest, >> ServletResponse servletResponse) throws ContainerException; >> + void invoke(ServletConfig servletConfig, ServletRequest servletRequest, >> ServletResponse servletResponse) throws ContainerException, >> ContainerNoMatchException; >> >> - void afterInvoke(ServletConfig servletConfig, ServletRequest >> servletRequest, ServletResponse servletResponse) throws ContainerException; >> + void afterInvoke(ServletConfig servletConfig, ServletRequest >> servletRequest, ServletResponse servletResponse) throws ContainerException, >> ContainerNoMatchException; >> >> void destroy() throws ContainerException; >> >> >> Modified: >> ecm/site-toolkit/trunk/api/src/main/java/org/hippoecm/hst/core/container/Valve.java >> =================================================================== >> --- >> ecm/site-toolkit/trunk/api/src/main/java/org/hippoecm/hst/core/container/Valve.java >> 2009-03-09 09:28:52 UTC (rev 16778) >> +++ >> ecm/site-toolkit/trunk/api/src/main/java/org/hippoecm/hst/core/container/Valve.java >> 2009-03-09 09:29:31 UTC (rev 16779) >> @@ -18,7 +18,7 @@ >> >> public interface Valve >> { >> - public void invoke(ValveContext context) throws ContainerException; >> + public void invoke(ValveContext context) throws ContainerException, >> ContainerNoMatchException; >> >> /** >> * Initialize the valve before using in a pipeline. >> >> Modified: >> ecm/site-toolkit/trunk/api/src/main/java/org/hippoecm/hst/core/container/ValveContext.java >> =================================================================== >> --- >> ecm/site-toolkit/trunk/api/src/main/java/org/hippoecm/hst/core/container/ValveContext.java >> 2009-03-09 09:28:52 UTC (rev 16778) >> +++ >> ecm/site-toolkit/trunk/api/src/main/java/org/hippoecm/hst/core/container/ValveContext.java >> 2009-03-09 09:29:31 UTC (rev 16779) >> @@ -22,7 +22,7 @@ >> >> public interface ValveContext >> { >> - public void invokeNext() throws ContainerException; >> + public void invokeNext() throws ContainerException, >> ContainerNoMatchException; >> >> public ServletConfig getServletConfig(); >> >> >> _______________________________________________ >> Hippocms-svn mailing list >> [email protected] >> http://lists.hippo.nl/mailman/listinfo/hippocms-svn >> > ******************************************** Hippocms-dev: Hippo CMS development public mailinglist
Searchable archives can be found at: MarkMail: http://hippocms-dev.markmail.org Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
