Mercurial > projects > dwt-win
comparison dwt/dwthelper/utils.d @ 206:cca980503056
sync with dwt-linux, removed the simple.d
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 16 Apr 2008 20:36:50 +0200 |
parents | 1d129e5f6aa6 |
children | ab60f3309436 |
comparison
equal
deleted
inserted
replaced
205:6d1762e7ebb7 | 206:cca980503056 |
---|---|
775 | 775 |
776 void ExceptionPrintStackTrace( Exception e ){ | 776 void ExceptionPrintStackTrace( Exception e ){ |
777 ExceptionPrintStackTrace( e, Stderr ); | 777 ExceptionPrintStackTrace( e, Stderr ); |
778 } | 778 } |
779 void ExceptionPrintStackTrace( Exception e, Print!(char) print ){ | 779 void ExceptionPrintStackTrace( Exception e, Print!(char) print ){ |
780 print.formatln( "Exception in {}({}): {}", e.file, e.line, e.msg ); | 780 Exception exception = e; |
781 while( exception !is null ){ | |
782 print.formatln( "Exception in {}({}): {}", exception.file, exception.line, exception.msg ); | |
783 foreach( msg; exception.info ){ | |
784 print.formatln( "trc {}", msg ); | |
785 } | |
786 exception = exception.next; | |
787 } | |
781 } | 788 } |
782 | 789 |
783 interface Reader{ | 790 interface Reader{ |
784 } | 791 } |
785 interface Writer{ | 792 interface Writer{ |