The Progress.Lang.Error interface describes a common set of properties and methods that built-in ABL error classes implement to interact with the ABL structured error handling model. This interface cannot be implemented by a user-defined class. Instead, to create your own ABL error class, subclass the Progress.Lang.AppError class.This interface is also implemented by an OpenEdge-enhanced version of the .NET System.Exception class (OpenEdge-enhanced). Because of this architecture, ABL recognizes .NET exceptions as error objects and ABL error handling features can recognize, handle, and re-throw .NET exceptions. The interface requires a class to implement the following properties:
![]()
The Progress.Lang.Error interface provides an abstract mechanism for integrating ABL and third-party error objects into the ABL structured error handling model. As such, it is the error type that represents all possible errors in ABL. Specifying this interface in a CATCH statement, creates an error handler that catches any error. For example:
DO ON ERROR UNDO, THROW:. . .CATCH anyErrorObject AS Progress.Lang.Error:. . .END CATCH.END.
© 2014 Progress Software Corporation and/or its subsidiaries or affiliates. |