01: /**
02: * $Id: PortalDomainContextException.java,v 1.2 2005/01/27 17:44:33 ru111118 Exp $
03: * Copyright 2004 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.admin.common.context;
14:
15: /**
16: * The class is a form of <code>Exception</code> that indicates an
17: * error condition of a portal domain context.
18: */
19: public class PortalDomainContextException extends Exception {
20: /**
21: * Constructs a new portal domain context exception with
22: * <code>null</code> as its detail message. The cause is not
23: * initialized, and may subsequently be initialized by a call to
24: * {@link #initCause}.
25: */
26: public PortalDomainContextException() {
27: super ();
28: }
29:
30: /**
31: * Constructs a new portal domain context exception with the
32: * specified detail message. The cause is not initialized, and
33: * may subsequently be initialized by a call to {@link #initCause}.
34: *
35: * @param message the detail message. The detail message is
36: * saved for later retrieval by the {@link
37: * #getMessage()} method.
38: */
39: public PortalDomainContextException(String message) {
40: super (message);
41: }
42:
43: /**
44: * Constructs a new portal domain context exception with the
45: * specified detail message and cause. <p>Note that the detail
46: * message associated with <code>cause</code> is <i>not</i>
47: * automatically incorporated in this exception's detail message.
48: *
49: * @param message the detail message (which is saved for later
50: * retrieval by the {@link #getMessage()} method).
51: * @param cause the cause (which is saved for later retrieval by
52: * the {@link #getCause()} method). (A
53: * <tt>null</tt> value is permitted, and indicates
54: * that the cause is nonexistent or unknown.)
55: */
56: public PortalDomainContextException(String message, Throwable cause) {
57: super (message, cause);
58: }
59:
60: /**
61: * Constructs a new portal domain context exception with the
62: * specified cause and a detail message of <tt>((cause == null) ?
63: * null : cause.toString())</tt> (which typically contains the
64: * class and detail message of <tt>cause</tt>).
65: *
66: * @param cause the cause (which is saved for later retrieval by
67: * the {@link #getCause()} method). (A
68: * <tt>null</tt> value is permitted, and indicates
69: * that the cause is nonexistent or unknown.)
70: */
71: public PortalDomainContextException(Throwable cause) {
72: super(cause);
73: }
74: }
|