comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/SWTError.d @ 9:950d84783eac

Removing direct tango deps.
author Frank Benoit <benoit@tionex.de>
date Mon, 09 Mar 2009 14:26:40 +0100
parents f36c67707cb3
children 735224fcc45f
comparison
equal deleted inserted replaced
8:2847134a5fc0 9:950d84783eac
10 * Port to the D programming language: 10 * Port to the D programming language:
11 * Frank Benoit <benoit@tionex.de> 11 * Frank Benoit <benoit@tionex.de>
12 *******************************************************************************/ 12 *******************************************************************************/
13 module org.eclipse.swt.SWTError; 13 module org.eclipse.swt.SWTError;
14 14
15 import java.lang.all;
16
15 import org.eclipse.swt.SWT; 17 import org.eclipse.swt.SWT;
16
17 import tango.io.Stdout;
18 import java.lang.all;
19 18
20 /** 19 /**
21 * This error is thrown whenever an unrecoverable error 20 * This error is thrown whenever an unrecoverable error
22 * occurs internally in SWT. The message text and error code 21 * occurs internally in SWT. The message text and error code
23 * provide a further description of the problem. The exception 22 * provide a further description of the problem. The exception
146 * Note: printStackTrace(PrintStream) and printStackTrace(PrintWriter) 145 * Note: printStackTrace(PrintStream) and printStackTrace(PrintWriter)
147 * are not provided in order to maintain compatibility with CLDC. 146 * are not provided in order to maintain compatibility with CLDC.
148 * </p> 147 * </p>
149 */ 148 */
150 public void printStackTrace () { 149 public void printStackTrace () {
151 Stderr.formatln( "stacktrace follows (if feature compiled in)" ); 150 getDwtLogger().error( "stacktrace follows (if feature compiled in)" );
152 foreach( msg; info ){ 151 foreach( msg; info ){
153 Stderr.formatln( "{}", msg ); 152 getDwtLogger().error( "{}", msg );
154 } 153 }
155 if ( throwable !is null) { 154 if ( throwable !is null) {
156 Stderr.formatln ("*** Stack trace of contained error ***"); //$NON-NLS-1$ 155 getDwtLogger().error ("*** Stack trace of contained error ***"); //$NON-NLS-1$
157 foreach( msg; throwable.info ){ 156 foreach( msg; throwable.info ){
158 Stderr.formatln( "{}", msg ); 157 getDwtLogger().error( "{}", msg );
159 } 158 }
160 } 159 }
161 } 160 }
162 161
163 } 162 }