01: /**
02: * $Id: PortletProvisionPreferencesException.java,v 1.2 2005/04/19 22:30:34 mjain Exp $
03: * Copyright 2005 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.portal.portlet.service.provision;
14:
15: import java.lang.Exception;
16:
17: import java.io.PrintWriter;
18: import java.io.BufferedReader;
19: import java.io.PrintStream;
20: import java.io.PrintWriter;
21:
22: /**
23: * A PortletProvisionPreferencesException is thrown when there is an unrecoverable error
24: * in implementation.
25: **/
26: public class PortletProvisionPreferencesException extends Exception {
27:
28: protected Throwable wrapped = null;
29:
30: /**
31: * Constructs a new exception with the specified message, indicating an
32: * error in the provider as happened.<br><br>
33: *
34: * @param msg The descriptive message.
35: */
36: public PortletProvisionPreferencesException(String msg) {
37: super (msg);
38: }
39:
40: /**
41: * Constructs a new exception with the specified message, and the original
42: * <code>exception</code> or <code>error</code>, indicating an error in the
43: * processing has happened.<br><br>
44: *
45: * @param msg The descriptive message.
46: * @param e The original <code>exception</code> or <code>error</code>.
47: */
48: public PortletProvisionPreferencesException(String msg, Throwable t) {
49: super (msg, t);
50: wrapped = t;
51: }
52:
53: /**
54: * Constructs a new exception with the specified message, and the original
55: * <code>exception</code> or <code>error</code>, indicating an error in the
56: * processing has happened.<br><br>
57: *
58: * @param e The original <code>exception</code> or <code>error</code>.
59: */
60: public PortletProvisionPreferencesException(Throwable t) {
61: super(t);
62: }
63:
64: }
|