FireDAC.Phys.MongoDBWrapper.TMongoError.CheckError

From RAD Studio API Documentation
Jump to: navigation, search

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());

Properties

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

Description

Raises an EMongoNativeException exception if necessary.

This method works in the following way:

  • If the AMethod value is specified, the method always raises the EMongoNativeException exception. The exception message includes the AMethod value.
  • If the AMethod value is not specified, the method checks the bson_error_t structure and if it contains an error, raises the corresponding EMongoNativeException exception.


See Also