Try OpenEdge Now
skip to main content
Object-oriented Programming
Programming with Class-based Objects : Raising and handling error conditions : Raising errors within a destructor
 

Raising errors within a destructor

ABL does not allow an error from a RETURN ERROR or an UNDO, THROW, or an unhandled system error, to be raised in a destructor beyond the level of the destructor block. This means that during the object destruction process, if the destructor is unable to perform its function, there is no mechanism for it to report a failure to the caller. The object is thus destroyed with no indication that an error occurred during the process.