KickJava   Java API By Example, From Geeks To Geeks.

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


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 an object was not coercible.
14  *
15  * @version <tt>$Revision: 1.1 $</tt>
16  * @author <a HREF="mailto:jason@planet57.com">Jason Dillon</a>
17  */

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

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

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

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

55    public NotCoercibleException() {
56       super();
57    }
58
59    /**
60     * Construct a <tt>NotCoercibleException</tt> with an object detail.
61     *
62     * @param obj Object detail.
63     */

64    public NotCoercibleException(Object JavaDoc obj) {
65       super(String.valueOf(obj));
66    }
67 }
68
Popular Tags