| [Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | 
Convert an exception to a variant exception
Source position: variants.pp line 314
procedure HandleConversionException(  | 
const ASourceType: TVarType;  | 
const ADestType: TVarType  | 
);  | 
ASourceType  | 
  | 
Source variant type  | 
ADestType  | 
  | 
Destination variant type  | 
HandleConversionException converts a RTL exception (EConvertError or ERangeError or EOverFlow) to an appropriate variant error (varCastError and varOverFlowError). Other exceptions are re-raised. If a source and destination type ASourceType and aDestType are specified they are included in the error message.
  | 
Raise a variant type cast error EVariantTypeCastError  | 
|
  | 
Raise an EVariantOverflowError error.  | 
|