Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dealing with inner exceptions
Message
From
22/04/2013 10:56:44
 
 
To
22/04/2013 10:46:28
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01571592
Message ID:
01571600
Views:
62
This message has been marked as the solution to the initial question of the thread.
>>Shouldn't it be :
Throw New Exception("Ok, here is the exception", ex)
>
>If I do that, I get the first error but not the "Ok, here is the exception". I also loose the stack trace as it only returns the last stack trace line.

Ah, a second problem. GetBaseException() get's the initial exception - there will be no inner to that. Just work with GetLastError() and drill down from there.....
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform