comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/SWTError.d @ 18:735224fcc45f

redirected all printings to DwtLogger
author Frank Benoit <benoit@tionex.de>
date Wed, 18 Mar 2009 09:57:53 +0100
parents 950d84783eac
children 2e09b0e6857a
comparison
equal deleted inserted replaced
17:6f068362a363 18:735224fcc45f
145 * Note: printStackTrace(PrintStream) and printStackTrace(PrintWriter) 145 * Note: printStackTrace(PrintStream) and printStackTrace(PrintWriter)
146 * are not provided in order to maintain compatibility with CLDC. 146 * are not provided in order to maintain compatibility with CLDC.
147 * </p> 147 * </p>
148 */ 148 */
149 public void printStackTrace () { 149 public void printStackTrace () {
150 getDwtLogger().error( "stacktrace follows (if feature compiled in)" ); 150 getDwtLogger().error( __FILE__, __LINE__, "stacktrace follows (if feature compiled in)" );
151 foreach( msg; info ){ 151 foreach( msg; info ){
152 getDwtLogger().error( "{}", msg ); 152 getDwtLogger().error( __FILE__, __LINE__, "{}", msg );
153 } 153 }
154 if ( throwable !is null) { 154 if ( throwable !is null) {
155 getDwtLogger().error ("*** Stack trace of contained error ***"); //$NON-NLS-1$ 155 getDwtLogger().error ( __FILE__, __LINE__, "*** Stack trace of contained error ***"); //$NON-NLS-1$
156 foreach( msg; throwable.info ){ 156 foreach( msg; throwable.info ){
157 getDwtLogger().error( "{}", msg ); 157 getDwtLogger().error( __FILE__, __LINE__, "{}", msg );
158 } 158 }
159 } 159 }
160 } 160 }
161 161
162 } 162 }