Changeset 228:628e9518870e
- Timestamp:
- 05/22/08 13:46:10
(5 months ago)
- Author:
- Frank Benoit <benoit@tionex.de>
- branch:
- default
- Message:
Fix ExceptionPrintStacktrace?
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r226 |
r228 |
|
| 768 | 768 | } |
|---|
| 769 | 769 | |
|---|
| | 770 | String ExceptionGetLocalizedMessage( Exception e ){ |
|---|
| | 771 | return e.msg; |
|---|
| | 772 | } |
|---|
| 770 | 773 | |
|---|
| 771 | 774 | void ExceptionPrintStackTrace( Exception e ){ |
|---|
| … | … | |
| 776 | 779 | while( exception !is null ){ |
|---|
| 777 | 780 | print.formatln( "Exception in {}({}): {}", exception.file, exception.line, exception.msg ); |
|---|
| 778 | | foreach( msg; exception.info ){ |
|---|
| 779 | | print.formatln( "trc {}", msg ); |
|---|
| | 781 | if( exception.info !is null ){ |
|---|
| | 782 | foreach( msg; exception.info ){ |
|---|
| | 783 | print.formatln( "trc {}", msg ); |
|---|
| | 784 | } |
|---|
| 780 | 785 | } |
|---|
| 781 | 786 | exception = exception.next; |
|---|