Changeset 235:b16e1f78a213
- 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
| r229 |
r235 |
|
| 778 | 778 | } |
|---|
| 779 | 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 | |
|---|