KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > update > internal > core > CoreExceptionWithRootCause


1 /*******************************************************************************
2  * Copyright (c) 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.update.internal.core;
12
13 import org.eclipse.core.runtime.CoreException;
14 import org.eclipse.core.runtime.IStatus;
15
16 public class CoreExceptionWithRootCause extends CoreException {
17
18     private static final long serialVersionUID = 6832993239926767403L;
19     
20     private Throwable JavaDoc e = null;
21     
22     public CoreExceptionWithRootCause(IStatus status) {
23         super(status);
24     }
25
26     public void setRootException(Throwable JavaDoc e) {
27         this.e = e;
28     }
29
30     public Throwable JavaDoc getRootException() {
31         return e;
32     }
33
34     
35 }
36
Popular Tags