comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/SWTException.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
136 * Note: printStackTrace(PrintStream) and printStackTrace(PrintWriter) 136 * Note: printStackTrace(PrintStream) and printStackTrace(PrintWriter)
137 * are not provided in order to maintain compatibility with CLDC. 137 * are not provided in order to maintain compatibility with CLDC.
138 * </p> 138 * </p>
139 */ 139 */
140 public void printStackTrace () { 140 public void printStackTrace () {
141 getDwtLogger().error( "stacktrace follows (if feature compiled in)" ); 141 getDwtLogger().error( __FILE__, __LINE__, "stacktrace follows (if feature compiled in)" );
142 foreach( msg; info ){ 142 foreach( msg; info ){
143 getDwtLogger().error( "{}", msg ); 143 getDwtLogger().error( __FILE__, __LINE__, "{}", msg );
144 } 144 }
145 if ( throwable !is null) { 145 if ( throwable !is null) {
146 getDwtLogger().error ("*** Stack trace of contained exception ***"); //$NON-NLS-1$ 146 getDwtLogger().error ( __FILE__, __LINE__, "*** Stack trace of contained exception ***"); //$NON-NLS-1$
147 foreach( msg; throwable.info ){ 147 foreach( msg; throwable.info ){
148 getDwtLogger().error( "{}", msg ); 148 getDwtLogger().error( __FILE__, __LINE__, "{}", msg );
149 } 149 }
150 } 150 }
151 } 151 }
152 152
153 } 153 }