Changeset 235:b16e1f78a213

Show
Ignore:
Timestamp:
04/16/08 14:31:38 (4 years ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

ExceptionPrintStackTrace? recurses now into .next

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/dwthelper/utils.d

    r229 r235  
    778778} 
    779779void 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    } 
    781788} 
    782789