KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > lenya > cms > publishing > ParentNodeNotFoundException


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation
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  */

17
18 /* $Id: ParentNodeNotFoundException.java 42598 2004-03-01 16:18:28Z gregor $ */
19
20 package org.apache.lenya.cms.publishing;
21
22 /**
23  * Exception to indicate an error when publishing a node where its parent
24  * node has not been published yet.
25  */

26 public class ParentNodeNotFoundException extends PublishingException{
27     /**
28      * Creates a new ParentNodeNotFoundException.
29      */

30     public ParentNodeNotFoundException() {
31     }
32
33     /**
34      * Creates a new ParentNodeNotFoundException.
35      *
36      * @param message the exception message
37      */

38     public ParentNodeNotFoundException(String JavaDoc message) {
39         super(message);
40     }
41
42     /**
43      * Creates a new ParentNodeNotFoundException.
44      *
45      * @param message the exception message
46      * @param cause the cause of the exception
47      */

48     public ParentNodeNotFoundException(String JavaDoc message, Throwable JavaDoc cause) {
49         super(message + " " + cause.getMessage());
50     }
51
52     /**
53      * Creates a new ParentNodeNotFoundException.
54      *
55      * @param cause the cause of the exception
56      */

57     public ParentNodeNotFoundException(Throwable JavaDoc cause) {
58         super(cause.getMessage());
59     }
60 }
61
Popular Tags