KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > interfaces > ServiceUnavailableException


1 /*
2 * JBoss, the OpenSource J2EE webOS
3 *
4 * Distributable under LGPL license.
5 * See terms of license at gnu.org.
6 */

7 package hero.interfaces;
8
9 /**
10  * Indicates a problem with a unavailable service. Because
11  * this is not a Runtime or Remote Exception it will NOT
12  * cause the transaction to roll back.
13  *
14  * @author Andreas Schaefer
15  * @version $Revision: 1.1 $
16  **/

17 public class ServiceUnavailableException
18    extends Exception JavaDoc
19 {
20    
21    // -------------------------------------------------------------------------
22
// Static
23
// -------------------------------------------------------------------------
24

25    // -------------------------------------------------------------------------
26
// Members
27
// -------------------------------------------------------------------------
28

29    // -------------------------------------------------------------------------
30
// Constructor
31
// -------------------------------------------------------------------------
32

33    /**
34     * Constructor with a message of the exception
35     *
36     * @param pMessage Message to further explain the exception
37     **/

38    public ServiceUnavailableException( String JavaDoc pMessage )
39    {
40       super( pMessage );
41    }
42
43
44    // -------------------------------------------------------------------------
45
// Methods
46
// -------------------------------------------------------------------------
47

48    /**
49     * Describes the instance and its content for debugging purpose
50     *
51     * @return Using the one from the super class
52     **/

53    public String JavaDoc toString()
54    {
55       return super.toString();
56    }
57
58    /**
59     * Determines if the given instance is the same as this instance
60     * based on its content. This means that it has to be of the same
61     * class ( or subclass ) and it has to have the same content
62     *
63     * @return Returns the equals value from the super class
64     **/

65    public boolean equals( Object JavaDoc pTest )
66    {
67       return super.equals( pTest );
68    }
69
70    /**
71     * Returns the hashcode of this instance
72     *
73     * @return Hashcode of the super class
74     **/

75    public int hashCode()
76    {
77       return super.hashCode();
78    }
79
80 }
81
Popular Tags