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; the
23 * meta-data component is assured to remain in consistent state.
24 */
25 public class EnhancerMetaDataUserException
26
27 extends RuntimeException
28 {
29 /***
30 * An optional nested exception.
31 */
32 public final Throwable nested;
33
34 /***
35 * Constructs an <code>EnhancerMetaDataUserException</code> with no detail
36 * message.
37 */
38 public EnhancerMetaDataUserException()
39 {
40 this.nested = null;
41 }
42
43 /***
44 * Constructs an <code>EnhancerMetaDataUserException</code> with the specified
45 * detail message.
46 */
47 public EnhancerMetaDataUserException(String msg)
48 {
49 super(msg);
50 this.nested = null;
51 }
52
53 /***
54 * Constructs an <code>EnhancerMetaDataUserException</code> with an optional
55 * nested exception.
56 */
57 public EnhancerMetaDataUserException(Throwable nested)
58 {
59 super("nested exception: " + nested);
60 this.nested = nested;
61 }
62
63 /***
64 * Constructs an <code>EnhancerMetaDataUserException</code> with the specified
65 * detail message and an optional nested exception.
66 */
67 public EnhancerMetaDataUserException(String msg, Throwable nested)
68 {
69 super(msg);
70 this.nested = nested;
71 }
72 }