01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui;
11:
12: import org.eclipse.core.runtime.IStatus;
13:
14: /**
15: * A checked exception indicating a workbench part cannot be initialized
16: * correctly. The message text provides a further description of the problem.
17: * <p>
18: * This exception class is not intended to be subclassed by clients.
19: * </p>
20: */
21: public class PartInitException extends WorkbenchException {
22:
23: /**
24: * Generated serial version UID for this class.
25: * @since 3.1
26: */
27: private static final long serialVersionUID = 3257284721296684850L;
28:
29: /**
30: * Creates a new exception with the given message.
31: *
32: * @param message the message
33: */
34: public PartInitException(String message) {
35: super (message);
36: }
37:
38: /**
39: * Creates a new exception with the given message.
40: *
41: * @param message the message
42: * @param nestedException a exception to be wrapped by this PartInitException
43: */
44: public PartInitException(String message, Throwable nestedException) {
45: super (message, nestedException);
46: }
47:
48: /**
49: * Creates a new exception with the given status object. The message
50: * of the given status is used as the exception message.
51: *
52: * @param status the status object to be associated with this exception
53: */
54: public PartInitException(IStatus status) {
55: super(status);
56: }
57: }
|