System.JSON.Readers.EJsonReaderException.CreateFmt
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
Creates an instance of EJsonReaderException with a formatted message string.
EJsonReaderException.CreateFmt inherits from Exception.CreateFmt.
Reader: A JSON reader object.Msg: String constant that contains format specifiers to be replaced with values fromArgs.Args: Array of constants that contains values to insert intoMsgfollowing the format defined by the format specifiers.Ex: An Exception object.LineInfo: A TJsonLineInfo object, the base class to provide information about the JSON position.Path: String constant that contains the path to the JSON token where the exception ocurred.