1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.jdo.impl.enhancer.meta;
19
20
21 /***
22 * Thrown to indicate that an access to JDO meta-data failed due to a
23 * serious error, which might have left the meta-data component in an
24 * inconsistent state.
25 */
26 public class EnhancerMetaDataFatalError
27
28 extends RuntimeException
29 {
30 /***
31 * An optional nested exception.
32 */
33 public final Throwable nested;
34
35 /***
36 * Constructs an <code>EnhancerMetaDataFatalError</code> with no detail message.
37 */
38 public EnhancerMetaDataFatalError()
39 {
40 this.nested = null;
41 }
42
43 /***
44 * Constructs an <code>EnhancerMetaDataFatalError</code> with the specified
45 * detail message.
46 */
47 public EnhancerMetaDataFatalError(String msg)
48 {
49 super(msg);
50 this.nested = null;
51 }
52
53 /***
54 * Constructs an <code>EnhancerMetaDataFatalError</code> with an optional
55 * nested exception.
56 */
57 public EnhancerMetaDataFatalError(Throwable nested)
58 {
59 super(nested.toString());
60 this.nested = nested;
61 }
62
63 /***
64 * Constructs an <code>EnhancerMetaDataFatalError</code> with the specified
65 * detail message and an optional nested exception.
66 */
67 public EnhancerMetaDataFatalError(String msg, Throwable nested)
68 {
69 super(msg);
70 this.nested = nested;
71 }
72 }