RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variants.HandleConversionException Function

Handles exceptions during variant type conversions.

Pascal
procedure HandleConversionException(const ASourceType: TVarType; const ADestType: TVarType);
C++
HandleConversionException(const TVarType ASourceType, const TVarType ADestType);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!