KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > blandware > atleap > persistence > exception > DeleteException


1 /*
2  * Copyright 2004 Blandware (http://www.blandware.com)
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 com.blandware.atleap.persistence.exception;
17
18 /**
19  * <p>Thrown when some object cannot be deleted, e.g. when some links exist on this object</p>
20  * <p><a HREF="DeleteException.java.htm"><i>View Source</i></a></p>
21  *
22  * @author Sergey Zubtcovskii <a HREF="mailto:sergey.zubtcovskii@blandware.com">&lt;sergey.zubtcovskii@blandware.com&gt;</a>
23  * @version $Revision: 1.2 $ $Date: 2005/01/14 12:57:03 $
24  */

25 public class DeleteException extends Exception JavaDoc {
26
27     /**
28      * Creates a new instance of DeleteException without detail message.
29      */

30     public DeleteException() {
31     }
32
33     /**
34      * Constructs an instance of DeleteException with the specified detail message.
35      *
36      * @param msg The detail message.
37      */

38     public DeleteException(String JavaDoc msg) {
39         super(msg);
40     }
41
42     /**
43      * Creates an instance of DeleteException with nested exception
44      *
45      * @param e Nested exception
46      */

47     public DeleteException(Exception JavaDoc e) {
48         super(e);
49     }
50
51     /**
52      * Overrides toString() method in java.lang.Exception
53      */

54     public String JavaDoc toString() {
55         return "com.blandware.atleap.persistence.exception.DeleteException";
56     }
57
58 }
Popular Tags