AppError Constructors
- Last Updated: October 6, 2025
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
The following is the default constructor. This constructor creates an
AppError object with an empty message list and does not
set any properties.
|
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. The error message and message number can be accessed
with the GetMessage(1) and GetMessageNum(1) methods.
|
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 ERROR
ErrorString statement. You can also invoke this
constructor directly (not common).
AddMessage() method is not used to set one, no message is
displayed if an object constructed this way is thrown and handled by default error
handling.
|
Below is an example of using an AppError.
|