1) Added missing strings for italic, underline and strike through.
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / core / builder / ImageBuilderInternalException.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2003 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11 package net.sourceforge.phpdt.internal.core.builder;
12
13 import org.eclipse.core.runtime.CoreException;
14
15 /**
16  * Exception thrown when there is an internal error in the image builder. May
17  * wrapper another exception.
18  */
19 public class ImageBuilderInternalException extends RuntimeException {
20
21         /**
22          * 
23          */
24         private static final long serialVersionUID = 6513327092634795515L;
25         protected CoreException coreException;
26
27         public ImageBuilderInternalException(CoreException e) {
28                 this.coreException = e;
29         }
30
31         public CoreException getThrowable() {
32                 return coreException;
33         }
34
35         public void printStackTrace() {
36                 if (coreException != null) {
37                         System.err.println(this);
38                         System.err.println("Stack trace of embedded core exception:"); //$NON-NLS-1$
39                         coreException.printStackTrace();
40                 } else {
41                         super.printStackTrace();
42                 }
43         }
44 }