API:System.JSON.Readers.EJsonReaderException.CreateFmt

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor CreateFmt(const Reader: TJsonReader; const Msg: string; const Args: array of const); overload;
constructor CreateFmt(const LineInfo: TJsonLineInfo; const Path, Msg: string; const Args: array of const); overload;

Properties

Type Visibility Source Unit Parent
constructor public System.JSON.Readers.pas System.JSON.Readers EJsonReaderException

Description

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

System.JSON.Readers.EJsonReaderException.CreateFmt inherits from System.SysUtils.Exception.CreateFmt. All content below this line refers to System.SysUtils.Exception.CreateFmt.

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