01: /*
02: * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05: package com.sun.portal.portlet.admin.mbeans.tasks;
06:
07: import java.io.PrintWriter;
08:
09: import com.sun.portal.desktop.DesktopError;
10:
11: /**
12: * A <code>PortletDeployerException</code> is thrown when there are errors related to
13: * display profile and server deploy operations.
14: */
15:
16: public class PortletDeployerException extends Exception {
17:
18: protected static java.util.Locale locale = java.util.Locale
19: .getDefault();
20:
21: protected java.lang.String key = null;
22: protected java.lang.Object[] tokens = null;
23:
24: /*
25: * CONSTRUCTORS
26: */
27:
28: /**
29: * Constructs an instance of the <code>PortletDeployerException</code> class.
30: * @param key key string to index into resource bundle to retieve
31: * localized message
32: */
33: public PortletDeployerException(java.lang.String key) {
34: super (key);
35: this .key = key;
36: }
37:
38: /**
39: * Constructs an instance of the <code>PortletDeployerException</code> class.
40: * @param key key string to index into resource bundle to retieve
41: * localized message
42: * @param tokens array of tokens to be used by the exception message
43: */
44: public PortletDeployerException(java.lang.String key,
45: java.lang.Object[] tokens) {
46: super (key);
47: this .key = key;
48: this .tokens = tokens;
49: }
50:
51: /**
52: * Constructs an instance of the <code>PortletDeployerException</code> class.
53: * @param key key string to index into resource bundle to retieve
54: * localized message
55: * @param t Throwable object provided by the object which is throwing
56: */
57: public PortletDeployerException(java.lang.String key,
58: java.lang.Throwable t) {
59: super (key, t);
60: this .key = key;
61: }
62:
63: /**
64: * Constructs an instance of the <code>PortletDeployerException</code> class.
65: * @param key key string to index into resource bundle to retieve
66: * localized message
67: * @param t Throwable object provided by the object which is throwing
68: * @param tokens array of tokens to be used by the exception message
69: */
70: public PortletDeployerException(java.lang.String key,
71: java.lang.Throwable t, java.lang.Object[] tokens) {
72: super (key, t);
73: this .key = key;
74: this .tokens = tokens;
75: }
76:
77: /**
78: * Constructs an instance of the <code>PortletDeployerException</code> class.
79: * @param t Throwable object provided by the object which is throwing
80: * the exception
81: */
82: public PortletDeployerException(java.lang.Throwable t) {
83: super (t);
84: }
85:
86: public String getKey() {
87: return key;
88: }
89:
90: public Object[] getTokens() {
91: return tokens;
92: }
93: }
|