01: /*
02: * $Id: IExceptionResponseStrategy.java 458319 2005-12-19 11:44:19Z ehillenius $
03: * $Revision: 458319 $
04: * $Date: 2005-12-19 12:44:19 +0100 (Mon, 19 Dec 2005) $
05: *
06: * ==============================================================================
07: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
08: * use this file except in compliance with the License. You may obtain a copy of
09: * the License at
10: *
11: * http://www.apache.org/licenses/LICENSE-2.0
12: *
13: * Unless required by applicable law or agreed to in writing, software
14: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16: * License for the specific language governing permissions and limitations under
17: * the License.
18: */
19: package wicket.request.compound;
20:
21: import wicket.RequestCycle;
22:
23: /**
24: * Strategy interface for implementing
25: * {@link wicket.request.compound.AbstractCompoundRequestCycleProcessor#respond(RuntimeException, RequestCycle)}.
26: *
27: * @author Eelco Hillenius
28: */
29: public interface IExceptionResponseStrategy {
30: /**
31: * Whenever a unhandled exception is encountered during the processing of a
32: * request cycle, this method is called to respond to the request in a
33: * proper way.
34: *
35: * @param requestCycle
36: * the current request cycle
37: * @param e
38: * an uncaught exception
39: */
40: void respond(RequestCycle requestCycle, RuntimeException e);
41: }
|