Home All Groups Group Topic Archive Search About

Viewing InnerExceptions

Author
6 Jul 2009 2:52 PM
John
Hi

When an exception occurs how can I view InnerExceptions to get to the bottom
of the problem? Is it possible to view all InnerExceptions?

Thanks

Regards

Author
6 Jul 2009 3:31 PM
Joe Cool
On Jul 6, 10:52 am, "John" <i...@nospam.infovis.co.uk> wrote:
> Hi
>
> When an exception occurs how can I view InnerExceptions to get to the bottom
> of the problem? Is it possible to view all InnerExceptions?
>
> Thanks
>
> Regards

If there is an InnerException, the InnerException property of the
exception will not be Nothing. If it isn't the message is in the
InnerException's Message property. An inner exception can have an
inner exception, and do forth. Just keep checking the InnerException
property for not Nothing.