Tip error handling on properties via methods

Every class holds a pointer on an 'AERROR' class array. This pointer called 'AERROR' is meant to handle errors and warning messages during CRUD operations.

Error handling on properties is carried out through different methods associated with the main class. These methods, called by Fmet instructions on this, are listed below.

ASETERROR(PRO,MES,NUM)

The this.ASETERROR method is used to set an error during a control:

AGETMAXERROR(PROPERTY_NAME)

This method returns the highest error code found in the error classes for a given property. PROPERTY_NAME is a string identifying the property for which the error is requested. If the property is empty, the returned error relates to all errors that are found during class methods execution.

ADELETEERROR(PROPERTY_NAME)

This method cancels the errors associated with a given property. PROPERTY_NAME is a string identifying the property for which the error must be cancelled. If the property is empty, all errors that are found globally for the class will be cancelled.

Error code values

The error code can contain of the following values:

Any error code value greater than [V]CST_AERROR will be considered an error.