KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > slide > webdav > util > LabeledRevisionNotFoundException


1 /*
2  * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/LabeledRevisionNotFoundException.java,v 1.6 2004/08/05 14:43:31 dflorey Exp $
3  * $Revision: 1.6 $
4  * $Date: 2004/08/05 14:43:31 $
5  *
6  * ====================================================================
7  *
8  * Copyright 1999-2002 The Apache Software Foundation
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  *
22  */

23 package org.apache.slide.webdav.util;
24
25 // import list
26
import org.apache.slide.webdav.WebdavException;
27
28 /**
29  * This Exception is thrown if a revision with the given label was not found.
30  *
31  * @version $Revision: 1.6 $
32  *
33  **/

34 public class LabeledRevisionNotFoundException extends WebdavException {
35     
36     /**
37      * The label that was searched for.
38      */

39     protected String JavaDoc label = null;
40     
41     /**
42      * The path of the resource (which is either a VHR or a VCR).
43      */

44     protected String JavaDoc resourcePath = null;
45     
46     /**
47      * Creates a LabeledRevisionNotFoundException.
48      *
49      * @param resourcePath the path of the resource (which is either a
50      * VHR or a VCR).
51      * @param label the label that was searched for.
52      */

53     public LabeledRevisionNotFoundException(String JavaDoc resourcePath, String JavaDoc label) {
54         
55         super(WebdavStatus.SC_NOT_FOUND);
56         this.resourcePath = resourcePath;
57         this.label = label;
58     }
59     
60     /**
61      * Returns the path of the resource (which is either a VHR or a VCR).
62      *
63      * @return the path of the resource (which is either a VHR or a VCR).
64      */

65     public String JavaDoc getResourcePath() {
66         return resourcePath;
67     }
68     
69     /**
70      * Returns the label that was searched for.
71      *
72      * @return the label that was searched for.
73      */

74     public String JavaDoc getLabel() {
75         return label;
76     }
77 }
78
79
Popular Tags