Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 11 package org.eclipse.core.internal.indexing; 12 13 import java.io.PrintStream ; 14 import java.io.PrintWriter ; 15 16 public abstract class StoreException extends Exception { 17 protected Throwable wrappedException; 18 19 public StoreException(String message) { 20 super(message); 21 } 22 23 public StoreException(String message, Throwable wrappedException) { 24 super(message); 25 this.wrappedException = wrappedException; 26 } 27 28 31 public void printStackTrace() { 32 printStackTrace(System.err); 33 } 34 35 38 public void printStackTrace(PrintStream output) { 39 synchronized (output) { 40 super.printStackTrace(output); 41 if (wrappedException != null) 42 wrappedException.printStackTrace(output); 43 } 44 } 45 46 49 public void printStackTrace(PrintWriter output) { 50 synchronized (output) { 51 super.printStackTrace(output); 52 if (wrappedException != null) 53 wrappedException.printStackTrace(output); 54 } 55 } 56 57 } 58 59
| Popular Tags
|