FireDAC.Phys.MongoDBWrapper.TMongoError.CheckError

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

procedure CheckError(AInitiator: TObject = nil; const AMethod: String = '');

C++

void __fastcall CheckError(System::TObject* AInitiator = (System::TObject*)(0x0), const System::UnicodeString AMethod = System::UnicodeString());

Propriétés

Type Visibilité  Source Unité  Parent
procedure
function
public
FireDAC.Phys.MongoDBWrapper.pas
FireDAC.Phys.MongoDBWrapper.hpp
FireDAC.Phys.MongoDBWrapper TMongoError


Description

Déclenche une exception EMongoNativeException, le cas échéant.

Cette méthode fonctionne de la manière suivante :

  • Si la valeur AMethod est spécifiée, la méthode déclenche toujours l'exception EMongoNativeException. Le message d'exception inclut la valeur AMethod.
  • Si la valeur AMethod n'est pas spécifiée, la méthode vérifie la structure bson_error_t et, si elle contient une erreur, déclenche l'exception EMongoNativeException correspondante.


Voir aussi