01: /*
02: * @author <a href="mailto:novotny@gridsphere.org">Jason Novotny</a>
03: * @version $Id: PortletServiceUnavailableException.java 6385 2007-10-25 14:02:26Z wehrens $
04: */
05: package org.gridsphere.portlet.service;
06:
07: /**
08: * The <code>PortletServiceUnavailableException</code> is thrown if a portlet
09: * attempts to access an service that cannot be loaded, because an error
10: * occured during initialization.
11: */
12: public class PortletServiceUnavailableException extends
13: PortletServiceException {
14:
15: /**
16: * Constructs a new portlet service unavailable exception.
17: */
18: public PortletServiceUnavailableException() {
19: super ();
20: }
21:
22: /**
23: * Creates a new exception with the sepcified detail message.
24: *
25: * @param message a string indicating why this exception is thrown.
26: */
27: public PortletServiceUnavailableException(String message) {
28: super (message, null);
29: }
30:
31: /**
32: * Constructs a new portlet exception with the given text.
33: * The portlet container may use the text write it to a log.
34: *
35: * @param text the exception text
36: * @param cause the root cause
37: */
38: public PortletServiceUnavailableException(String text,
39: Throwable cause) {
40: super (text, cause);
41: }
42:
43: /**
44: * Constructs a new portlet exception when the portlet needs to throw an exception.
45: * The exception's message is based on the localized message of the underlying exception.
46: *
47: * @param cause the root cause
48: */
49: public PortletServiceUnavailableException(Throwable cause) {
50: super(cause);
51: }
52:
53: }
|