RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAdapterErrorsList Class

TAdapterErrorsList keeps track of errors that an adapter encounters.

Pascal
TAdapterErrorsList = class(TBaseAdapterErrorsList);
C++
class TAdapterErrorsList : public TBaseAdapterErrorsList;

TAdapterErrorsList acts as a repository for all the errors an adapter (or any of its subcomponents) encounters while processing an HTTP request message. Adapter components create an instance of this class to implement their Errors property. Server-side scripts can use the Errors property to access the errors in this list. The usual purpose of such a script is to display error messages to the end user. 

To add new error objects to the list, call the AddError method. To access the errors in the list, read its Errors property. Errors lists the IAdapterError interfaces of adapter error objects (TAdapterError) that represent each error in the list. You can also access the individual properties of those error objects using the FieldNames, IDs, and Messages properties of the TAdapterErrorsList instance.  

TAdapterErrorsList implements the IAdapterErrorsList interface.

Note: Do not confuse TAdapterErrorsList with TAdapterErrorList. TAdapterErrorsList stores the errors that the WebSnap application encounters when using an adapter. TAdapterErrorList is a display component that displays the errors from a TAdapterErrorsList object.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!