KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > webflow > execution > repository > continuation > ContinuationNotFoundException


1 /*
2  * Copyright 2002-2006 the original author or authors.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.continuation;
17
18 import java.io.Serializable JavaDoc;
19
20 import org.springframework.webflow.execution.repository.FlowExecutionRepositoryException;
21
22 /**
23  * Thrown when no flow execution continuation exists within a continuation
24  * group with a particular id. This might occur if the continuation has expired
25  * or was explictly invalidated but a client's browser page cache still references it.
26  *
27  * @author Keith Donald
28  * @author Erwin Vervaet
29  */

30 public class ContinuationNotFoundException extends FlowExecutionRepositoryException {
31
32     /**
33      * The unique continuation identifier that was not found.
34      */

35     private Serializable JavaDoc continuationId;
36
37     /**
38      * Creates a continuation not found exception.
39      * @param continuationId the continuation id that could not be found
40      */

41     public ContinuationNotFoundException(Serializable JavaDoc continuationId) {
42         super("No flow execution continuation could be found in this group with id '" + continuationId
43                 + "' -- perhaps the continuation has expired or has been invalidated? ");
44     }
45
46     /**
47      * Returns the continuation id that could not be found.
48      */

49     public Serializable JavaDoc getContinuationId() {
50         return continuationId;
51     }
52 }
Popular Tags