KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > jdo > api > persistence > enhancer > meta > JDOMetaDataUserException


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24
25 package com.sun.jdo.api.persistence.enhancer.meta;
26
27
28 /**
29  * Thrown to indicate that an access to JDO meta-data failed; the
30  * meta-data component is assured to remain in consistent state.
31  */

32 public class JDOMetaDataUserException
33     //^olsen: provisional, convert to a checked exception
34
extends RuntimeException JavaDoc
35 {
36     /**
37      * An optional nested exception.
38      */

39     public final Throwable JavaDoc nested;
40
41     /**
42      * Constructs an <code>JDOMetaDataUserException</code> with no detail
43      * message.
44      */

45     public JDOMetaDataUserException()
46     {
47         this.nested = null;
48     }
49
50     /**
51      * Constructs an <code>JDOMetaDataUserException</code> with the specified
52      * detail message.
53      */

54     public JDOMetaDataUserException(String JavaDoc msg)
55     {
56         super(msg);
57         this.nested = null;
58     }
59
60     /**
61      * Constructs an <code>JDOMetaDataUserException</code> with an optional
62      * nested exception.
63      */

64     public JDOMetaDataUserException(Throwable JavaDoc nested)
65     {
66         super("nested exception: " + nested);//NOI18N
67
this.nested = nested;
68     }
69
70     /**
71      * Constructs an <code>JDOMetaDataUserException</code> with the specified
72      * detail message and an optional nested exception.
73      */

74     public JDOMetaDataUserException(String JavaDoc msg, Throwable JavaDoc nested)
75     {
76         super(msg);
77         this.nested = nested;
78     }
79 }
80
Popular Tags