KickJava   Java API By Example, From Geeks To Geeks.

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


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 due to a
30  * serious error, which might have left the meta-data component in an
31  * inconsistent state.
32  */

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

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

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

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

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

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