Data.DB.TField.AccessError

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

Type Visibility Source Unit Parent
function protected
Data.DB.pas
Data.DB.hpp
Data.DB TField

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