RAD Studio VCL Reference
|
Handles exceptions during variant type conversions.
procedure HandleConversionException(const ASourceType: TVarType; const ADestType: TVarType);
HandleConversionException(const TVarType ASourceType, const TVarType ADestType);
Variants
HandleConversionException handles exceptions resulting from attempts to convert between variant types. Code that implements such conversions should call HandleConversionException when a conversion throws an exception.
ASourceType and ADestType indicate the variant types of the source and destination. HandleConversionException uses these to format an appropriate error string. If the current exception corresponds to a variant exception, HandleConversionException raises that exception. Otherwise, HandleConversionException simply re-raises the original exception.
EVariantError
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|