Try OpenEdge Now
skip to main content
Error Handling
Using ABL Error Classes : Progress.Lang.AppError class : Constructors
 

Constructors

The following is the default constructor. This constructor creates an AppError object with an empty message list and does not set any properties. This is the syntax:

Syntax

PUBLIC AppError( )
The following constructor creates an AppError object and assigns the first message on the object with the values from the ErrorMessage and MessageNumber arguments. It also sets the NumMessages property to 1. This error message and message number can be accessed with the GetMessage(1) and GetMessageNum(1) methods. This is the syntax:

Syntax

PUBLIC AppError( INPUT ErrorMessage   AS CHARACTER
                 INPUT MessageNumber AS INTEGER )
The following constructor creates an AppError object with the ReturnValue property set with the value of the ReturnValue parameter. This constructor is used when the AVM implicitly creates an AppError object for a RETURN ERRORErrorString statement. You can also invoke this constructor directly. This is the syntax:

Syntax

PUBLIC AppError( INPUT ReturnValue AS CHARACTER )