KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > PartInitException


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.ui;
12
13 import org.eclipse.core.runtime.IStatus;
14
15 /**
16  * A checked exception indicating a workbench part cannot be initialized
17  * correctly. The message text provides a further description of the problem.
18  * <p>
19  * This exception class is not intended to be subclassed by clients.
20  * </p>
21  */

22 public class PartInitException extends WorkbenchException {
23     
24     /**
25      * Generated serial version UID for this class.
26      * @since 3.1
27      */

28     private static final long serialVersionUID = 3257284721296684850L;
29
30     /**
31      * Creates a new exception with the given message.
32      *
33      * @param message the message
34      */

35     public PartInitException(String JavaDoc message) {
36         super(message);
37     }
38
39     /**
40      * Creates a new exception with the given message.
41      *
42      * @param message the message
43      * @param nestedException a exception to be wrapped by this PartInitException
44      */

45     public PartInitException(String JavaDoc message, Throwable JavaDoc nestedException) {
46         super(message, nestedException);
47     }
48
49     /**
50      * Creates a new exception with the given status object. The message
51      * of the given status is used as the exception message.
52      *
53      * @param status the status object to be associated with this exception
54      */

55     public PartInitException(IStatus status) {
56         super(status);
57     }
58 }
59
Popular Tags