Skip to main content
summaryrefslogtreecommitdiffstats
blob: 2dcd49ab54b0e4c3e4dae419359f2a02e5a0372b (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
package org.eclipse.jdt.internal.core.builder.impl;

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:");
			fThrowable.printStackTrace();
		} else {
			super.printStackTrace();
		}
	}
}

Back to the top