KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * Copyright 2005 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 updated for some reason</p>
20  * <p><a HREF="UpdateException.java.htm"><i>View source</i></a></p>
21  *
22  * @author Roman Puchkovskiy <a HREF="mailto:roman.puchkovskiy@blandware.com">
23  * &lt;roman.puchkovskiy@blandware.com&gt;</a>
24  * @version $Revision: 1.1 $ $Date: 2005/11/28 15:58:02 $
25  */

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

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

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

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

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