01: /*
02: * JBoss, the OpenSource J2EE webOS
03: *
04: * Distributable under LGPL license.
05: * See terms of license at gnu.org.
06: */
07: package hero.interfaces;
08:
09: /**
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 extends Exception {
18:
19: // -------------------------------------------------------------------------
20: // Static
21: // -------------------------------------------------------------------------
22:
23: // -------------------------------------------------------------------------
24: // Members
25: // -------------------------------------------------------------------------
26:
27: // -------------------------------------------------------------------------
28: // Constructor
29: // -------------------------------------------------------------------------
30:
31: /**
32: * Constructor with a message of the exception
33: *
34: * @param pMessage Message to further explain the exception
35: **/
36: public ServiceUnavailableException(String pMessage) {
37: super (pMessage);
38: }
39:
40: // -------------------------------------------------------------------------
41: // Methods
42: // -------------------------------------------------------------------------
43:
44: /**
45: * Describes the instance and its content for debugging purpose
46: *
47: * @return Using the one from the super class
48: **/
49: public String toString() {
50: return super .toString();
51: }
52:
53: /**
54: * Determines if the given instance is the same as this instance
55: * based on its content. This means that it has to be of the same
56: * class ( or subclass ) and it has to have the same content
57: *
58: * @return Returns the equals value from the super class
59: **/
60: public boolean equals(Object pTest) {
61: return super .equals(pTest);
62: }
63:
64: /**
65: * Returns the hashcode of this instance
66: *
67: * @return Hashcode of the super class
68: **/
69: public int hashCode() {
70: return super.hashCode();
71: }
72:
73: }
|