Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dealing with inner exceptions
Message
De
22/04/2013 10:56:44
 
 
À
22/04/2013 10:46:28
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01571592
Message ID:
01571600
Vues:
61
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.....
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform