Package org.eclipse.ui
Class MultiPartInitException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.eclipse.core.runtime.CoreException
-
- org.eclipse.ui.WorkbenchException
-
- org.eclipse.ui.MultiPartInitException
-
- All Implemented Interfaces:
Serializable
public class MultiPartInitException extends WorkbenchException
A checked exception indicating one or more workbench parts could not be initialized correctly. The message text provides a further description of the problem.- Since:
- 3.5
- See Also:
- Serialized Form
- Restriction:
- This class is not intended to be subclassed by clients.
-
-
Constructor Summary
Constructors Constructor Description MultiPartInitException(IWorkbenchPartReference[] references, PartInitException[] exceptions)
Creates a new exception object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PartInitException[]
getExceptions()
Returns an array of exceptions, corresponding to parts that could not be intialized correctly.IWorkbenchPartReference[]
getReferences()
Returns an array of part references, containing references of parts that were intialized correctly.-
Methods inherited from class org.eclipse.core.runtime.CoreException
getCause, getStatus, printStackTrace, printStackTrace, printStackTrace
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MultiPartInitException
public MultiPartInitException(IWorkbenchPartReference[] references, PartInitException[] exceptions)
Creates a new exception object. Note that as of 3.5, this constructor expects exactly one exception object in the given array, with all other array positions beingnull
. The restriction may be lifted in the future, and clients of this class must not make this assumption.- Parameters:
references
- the parts in errorexceptions
- the exceptions
-
-
Method Detail
-
getReferences
public IWorkbenchPartReference[] getReferences()
Returns an array of part references, containing references of parts that were intialized correctly. Any number of elements of the returned array may have anull
value.- Returns:
- the part reference array
-
getExceptions
public PartInitException[] getExceptions()
Returns an array of exceptions, corresponding to parts that could not be intialized correctly. At least one element of the returned array will have a non-null
value.- Returns:
- the exception array
-
-