KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > webflow > execution > repository > support > InvalidContinuationIdException


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.support;
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 with the provided id.
24  * This might occur if the continuation has expired or was explictly invalidated
25  * but a client's browser page cache still references it.
26  *
27  * @author Keith Donald
28  * @author Erwin Vervaet
29  */

30 public class InvalidContinuationIdException extends FlowExecutionRepositoryException {
31
32     /**
33      * The unique continuation identifier that was invalid.
34      */

35     private Serializable JavaDoc continuationId;
36
37     /**
38      * Creates an invalid continuation id exception.
39      * @param continuationId the invalid continuation id
40      */

41     public InvalidContinuationIdException(Serializable JavaDoc continuationId) {
42         super("The continuation id '" + continuationId + "' is invalid. Access to flow execution denied.");
43     }
44
45     /**
46      * Returns the continuation id.
47      */

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