getExceptionHandlerStack

getExceptionHandlerStack(oa: ObjectArray input);

The getExceptionHandlerStack method of the Process class populates a transient instance of the ObjectArray class with transient instances of the ExceptionHandlerDesc class that represent the exception handlers armed by the receiving process in the current node.

In the array, locally armed exception handlers precede globally armed exception handlers. Within this grouping, the most recently armed exception handlers occur first.

The method displays only exception handlers the process has armed on the current node. For example, it does not display global exception handlers armed in a serverExecution method, unless executed from a serverExecution method.

The use of the getExceptionHandlerStack method is shown in the following code example. It is the responsibility of the calling method to delete the transient instances of the ExceptionHandlerDesc class.

showArmedExceptionHandlers();
vars
    oa: ObjectArray;
    o:  Object;
begin
    create oa transient;
    process.getExceptionHandlerStack(oa);
    foreach o in oa do
        write o.display;
    endforeach;
epilog
    oa.purge;
    delete oa;
end;