Mercurial > projects > dwt-linux
changeset 235:b16e1f78a213
ExceptionPrintStackTrace recurses now into .next
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 16 Apr 2008 20:31:38 +0200 |
parents | 1dab63e45ef0 |
children | 329f277b58a0 |
files | dwt/dwthelper/utils.d |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dwt/dwthelper/utils.d Wed Apr 16 20:30:49 2008 +0200 +++ b/dwt/dwthelper/utils.d Wed Apr 16 20:31:38 2008 +0200 @@ -777,7 +777,14 @@ ExceptionPrintStackTrace( e, Stderr ); } void ExceptionPrintStackTrace( Exception e, Print!(char) print ){ - print.formatln( "Exception in {}({}): {}", e.file, e.line, e.msg ); + Exception exception = e; + while( exception !is null ){ + print.formatln( "Exception in {}({}): {}", exception.file, exception.line, exception.msg ); + foreach( msg; exception.info ){ + print.formatln( "trc {}", msg ); + } + exception = exception.next; + } } interface Reader{