Function ErrorNew() Foundation
Generates a new object of the error class. This function is deprecated.
ErrorNew() --> oError
The return value of ErrorNew() is a new error object.
The function ErrorNew() is a compatibility function. It should no longer be used, since Xbase++ makes a complete object model available. The message :new() should be sent to the class object of the error class, instead of a function call ErrorNew().
// The example shows a comparison the function call and
// the sending of the message :new() to the class object.
PROCEDURE Main
LOCAL oError
oError := ErrorNew() // function call
oError := Error():new() // message to class object
RETURN
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.