System.SysUtils.Exception.CreateFmt

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor CreateFmt(const Msg: string; const Args: array of const);

Properties

Type Visibility Source Unit Parent
constructor public System.SysUtils.pas System.SysUtils Exception

Description

Instantiates an instance of an exception with a formatted message string.

Call CreateFmt to construct an exception with a formatted message string. Msg is a string constant containing format specifiers to be replaced with values from Args. Args is an array of constants containing values to format according to format specifiers in Msg, and insert into Msg. CreateFmt calls the Format function to transform Msg with the values in Arg.

See Also