HandleConversionException procedure
Convert an exception to a variant exception.
Declaration
procedure HandleConversionException(const ASourceType: tvartype;
const ADestType: tvartype)Arguments
ASourceType | Source variant type. |
ADestType | Destination variant type. |
Description
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.See also
- EConvertError
- ERangeError
- varCastError
- varOverFlowError
- EOverFlow
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
