KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > util > CoercionException


1 /***************************************
2  * *
3  * JBoss: The OpenSource J2EE WebOS *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  ***************************************/

9
10 package org.jboss.util;
11
12 /**
13  * This exception is thrown to indicate that a problem has occured while
14  * trying to coerce an object.
15  *
16  * @version <tt>$Revision: 1.1 $</tt>
17  * @author <a HREF="mailto:jason@planet57.com">Jason Dillon</a>
18  */

19 public class CoercionException
20    extends NestedRuntimeException
21 {
22    /**
23     * Construct a <tt>CoercionException</tt> with the specified detail
24     * message.
25     *
26     * @param msg Detail message.
27     */

28    public CoercionException(String JavaDoc msg) {
29       super(msg);
30    }
31
32    /**
33     * Construct a <tt>CoercionException</tt> with the specified detail
34     * message and nested <tt>Throwable</tt>.
35     *
36     * @param msg Detail message.
37     * @param nested Nested <tt>Throwable</tt>.
38     */

39    public CoercionException(String JavaDoc msg, Throwable JavaDoc nested) {
40       super(msg, nested);
41    }
42
43    /**
44     * Construct a <tt>CoercionException</tt> with the specified
45     * nested <tt>Throwable</tt>.
46     *
47     * @param nested Nested <tt>Throwable</tt>.
48     */

49    public CoercionException(Throwable JavaDoc nested) {
50       super(nested);
51    }
52
53    /**
54     * Construct a <tt>CoercionException</tt> with no detail.
55     */

56    public CoercionException() {
57       super();
58    }
59 }
60
Popular Tags