01: /*
02: * Copyright 2004-2007 the original author or authors.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.springframework.webflow.execution.repository;
17:
18: /**
19: * Thrown when the flow execution with the persistent identifier provided could
20: * not be found. This could occur if the execution has been removed from the
21: * repository and a client still has a handle to the key.
22: *
23: * @author Keith Donald
24: * @author Erwin Vervaet
25: */
26: public class NoSuchFlowExecutionException extends
27: FlowExecutionAccessException {
28:
29: /**
30: * Creates a new no such flow execution exception.
31: * @param flowExecutionKey the key of the execution that could not be
32: * found
33: * @param cause the root cause of the failure
34: */
35: public NoSuchFlowExecutionException(
36: FlowExecutionKey flowExecutionKey, Exception cause) {
37: super (
38: flowExecutionKey,
39: "No flow execution could be found with key '"
40: + flowExecutionKey
41: + "' -- perhaps this executing flow has ended or expired? "
42: + "This could happen if your users are relying on browser history "
43: + "(typically via the back button) that references ended flows.",
44: cause);
45: }
46: }
|