KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > blandware > atleap > service > exception > OwnerNotFoundException


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.service.exception;
17
18 /**
19  * <p>Thrown when owner of some entity couldn't be found (e.g. ID is specified, but corresponding enity has already been deleted)</p>
20  * <p><a HREF="OwnerNotFoundException.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.3 $ $Date: 2005/03/19 20:37:21 $
24  */

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

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

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

48     public OwnerNotFoundException(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 getClass().getName() + (getMessage() != null ? ": " + getMessage() : "");
57     }
58
59 }
Popular Tags