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