System.JSON.Readers.EJsonReaderException.Create

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

constructor Create(const Msg: string; const InnerException: Exception; const APath: string; ALineNumber: Integer;  ALinePosition: Integer); overload;
constructor Create(const Reader: TJsonReader; const Msg: string; const Ex: Exception = nil); overload;
constructor Create(const LineInfo: TJsonLineInfo; const Path, Msg: string; const Ex: Exception = nil); overload;

C++

__fastcall EJsonReaderException(const System::UnicodeString Msg, System::Sysutils::Exception* const InnerException, const System::UnicodeString APath, int ALineNumber, int ALinePosition)/* overload */;
__fastcall EJsonReaderException(TJsonReader* const Reader, const System::UnicodeString Msg, System::Sysutils::Exception* const Ex)/* overload */;
__fastcall EJsonReaderException(System::Json::Types::TJsonLineInfo* const LineInfo, const System::UnicodeString Path, const System::UnicodeString Msg, System::Sysutils::Exception* const Ex)/* overload */;
__fastcall EJsonReaderException(TJsonReader* const Reader, const System::UnicodeString Msg, const System::TVarRec *Args, const int Args_High, System::Sysutils::Exception* const Ex)/* overload */;
__fastcall EJsonReaderException(System::Json::Types::TJsonLineInfo* const LineInfo, const System::UnicodeString Path, const System::UnicodeString Msg, const System::TVarRec *Args, const int Args_High, System::Sysutils::Exception* const Ex)/* overload */;
/* EJsonException.Create */ inline __fastcall EJsonReaderException(const System::UnicodeString Msg, System::Sysutils::Exception* const InnerException)/* overload */ : System::Json::Types::EJsonException(Msg, InnerException) { }
/* Exception.CreateRes */ inline __fastcall EJsonReaderException(NativeUInt Ident)/* overload */ : System::Json::Types::EJsonException(Ident) { }
/* Exception.CreateRes */ inline __fastcall EJsonReaderException(System::PResStringRec ResStringRec)/* overload */ : System::Json::Types::EJsonException(ResStringRec) { }
/* Exception.CreateResFmt */ inline __fastcall EJsonReaderException(NativeUInt Ident, const System::TVarRec *Args, const int Args_High)/* overload */ : System::Json::Types::EJsonException(Ident, Args, Args_High) { }
/* Exception.CreateResFmt */ inline __fastcall EJsonReaderException(System::PResStringRec ResStringRec, const System::TVarRec *Args, const int Args_High)/* overload */ : System::Json::Types::EJsonException(ResStringRec, Args, Args_High) { }
/* Exception.CreateHelp */ inline __fastcall EJsonReaderException(const System::UnicodeString Msg, int AHelpContext) : System::Json::Types::EJsonException(Msg, AHelpContext) { }
/* Exception.CreateFmtHelp */ inline __fastcall EJsonReaderException(const System::UnicodeString Msg, const System::TVarRec *Args, const int Args_High, int AHelpContext) : System::Json::Types::EJsonException(Msg, Args, Args_High, AHelpContext) { }
/* Exception.CreateResHelp */ inline __fastcall EJsonReaderException(NativeUInt Ident, int AHelpContext)/* overload */ : System::Json::Types::EJsonException(Ident, AHelpContext) { }
/* Exception.CreateResHelp */ inline __fastcall EJsonReaderException(System::PResStringRec ResStringRec, int AHelpContext)/* overload */ : System::Json::Types::EJsonException(ResStringRec, AHelpContext) { }
/* Exception.CreateResFmtHelp */ inline __fastcall EJsonReaderException(System::PResStringRec ResStringRec, const System::TVarRec *Args, const int Args_High, int AHelpContext)/* overload */ : System::Json::Types::EJsonException(ResStringRec, Args, Args_High, AHelpContext) { }
/* Exception.CreateResFmtHelp */ inline __fastcall EJsonReaderException(NativeUInt Ident, const System::TVarRec *Args, const int Args_High, int AHelpContext)/* overload */ : System::Json::Types::EJsonException(Ident, Args, Args_High, AHelpContext) { }

Propriétés

Type Visibilité  Source Unité  Parent
constructor public
System.JSON.Readers.pas
System.JSON.Readers.hpp
System.JSON.Readers EJsonReaderException


Description

Crée une instance de EJsonReaderException.

EJsonReaderException.Create hérite de Exception.Create.

  • Msg : constante chaîne contenant le message d'erreur d'exécution à afficher dans la boîte de dialogue d'exception. Msg peut être une chaîne codée en dur ou peut être un appel de fonction qui renvoie une chaîne.
  • InnerException : l'exception sous-jacente.
  • APath : constante chaîne contenant le chemin d'accès au token JSON où l'exception s'est produite.
  • ALineNumber : valeur entière avec le numéro de ligne où l'exception s'est produite.
  • ALinePosition: valeur entière avec la position de ligne au sein de la ligne où l'exception s'est produite.
  • Reader: objet lecteur JSON.
  • Ex: objet Exception.
  • LineInfo : objet TJsonLineInfo, la classe de base permettant de fournir des informations sur la position JSON en cours de lecture/d'écriture dans un flux.

Voir aussi