KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sape > carbon > services > uniqueid > UniqueIDNotFoundException


1 /*
2  * The contents of this file are subject to the Sapient Public License
3  * Version 1.0 (the "License"); you may not use this file except in compliance
4  * with the License. You may obtain a copy of the License at
5  * http://carbon.sf.net/License.html.
6  *
7  * Software distributed under the License is distributed on an "AS IS" basis,
8  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
9  * the specific language governing rights and limitations under the License.
10  *
11  * The Original Code is The Carbon Component Framework.
12  *
13  * The Initial Developer of the Original Code is Sapient Corporation
14  *
15  * Copyright (C) 2003 Sapient Corporation. All Rights Reserved.
16  */

17
18 package org.sape.carbon.services.uniqueid;
19
20
21 /**
22  * Thrown when a UniqueID cannot be found. This may be handled by creating
23  * the ID.
24  *
25  * Copyright 2002 Sapient
26  * @since carbon 1.0
27  * @author Vivekanand Kirubanandan, June 2002
28  * @version $Revision: 1.6 $($Author: dvoet $ / $Date: 2003/05/05 21:21:38 $)
29  */

30 public class UniqueIDNotFoundException extends UniqueIDServiceException {
31     /** Error message. */
32     private static final String JavaDoc MESSAGE = "ID was not found";
33
34     /**
35      * Constructor for UniqueIDNotFoundException.
36      *
37      * @param sourceClass The source class of this exception
38      * @param idName name of the id that was being processed when
39      * the exception is thrown.
40      */

41     public UniqueIDNotFoundException(
42         Class JavaDoc sourceClass,
43         String JavaDoc idName) {
44         super(sourceClass, idName, MESSAGE);
45     }
46
47     /**
48      * Constructor for UniqueIDNotFoundException.
49      *
50      * @param sourceClass The source class of this exception
51      * @param idName name of the id that was being processed when
52      * the exception is thrown.
53      * @param cause a throwable that can be considered the cause
54      * of the current exception (used in levelizing exceptions)
55      */

56     public UniqueIDNotFoundException(
57         Class JavaDoc sourceClass,
58         String JavaDoc idName,
59         Throwable JavaDoc cause) {
60         super(sourceClass, idName, MESSAGE, cause);
61     }
62
63 }
64
Popular Tags