"John" <info@nospam.infovis.co.uk> schrieb
[quoted text, click to view] > Hi
>
> What is the purpose of exception.GetType and what are the possible
> values returned by it? Can it for example tell me if the exception
> is of type DBConcurrencyException?
GetType is inherited from Object. It returns the System.Type object
representing the instance type of the object. To check for a certain
type, use the TypeOf keyword (if typeof ex is DBConcurrencyException
then). If you want to catch different types of exceptions and handle
them differently, you can write:
try
catch ex as DBConcurrencyException
'...
catch ex as WhateverException
'...
catch ex as exception
'...
end try
Armin