Skip to main content
summaryrefslogtreecommitdiffstats
blob: 3c67b9ee96f4fdf203040a3e2e25a5956f727e2f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package org.eclipse.jdt.internal.core.builder.impl;
/*
 * (c) Copyright IBM Corp. 2000, 2001.
 * All Rights Reserved.
 */
import org.eclipse.jdt.core.*;

/**
 * Exception thrown when there is an internal error in the image builder.
 * May wrapper another exception.
 */
public class ImageBuilderInternalException extends RuntimeException {
	protected Throwable fThrowable;
/**
 * Creates the exception with no error message.
 */
public ImageBuilderInternalException() {
}
/**
 * Creates the exception with an error message.
 */
public ImageBuilderInternalException(String s) {
	super(s);
}
/**
 * Creates the exception, wrappering another throwable.
 */
public ImageBuilderInternalException(Throwable t) {
	fThrowable = t;
}
/**
 * Returns the throwable which this wraps, or null if not applicable.
 */
public Throwable getThrowable() {
	return fThrowable;
}
	/**
	 * Prints the exception to System.err.
	 */
	public void printStackTrace() {
		if (fThrowable != null) {
			System.err.println(this);
			System.err.println("Stack trace of embedded throwable:"/*nonNLS*/);
			fThrowable.printStackTrace();
		} else {
			super.printStackTrace();
		}
	}
}

Back to the top