Data.DB.TField.AccessError

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: protected
Source:
Data.DB.pas
Data.DB.hpp
Unit: Data.DB
Parent: TField

Delphi

function AccessError(const TypeName: string): EDatabaseError; dynamic;

C++

DYNAMIC EDatabaseError* __fastcall AccessError(const System::UnicodeString TypeName);

Description

Creates en error message and returns an EDatabaseError exception.

The AccessError method creates an error message customized according to the data type name passed as parameter, and returns an EDatabaseError exception containing the error message. The exceptions are raised by the protected setter and getter methods of the properties in the TField class.

For example, when attempting to set the AsAnsiString property, an exception is raised. That is because those methods are to be implemented in subclasses of TField.

See Also