ascot diagnostics

A4344

Warning: An error here re-enters the handler {var} still names

An error raised on purpose (ZTrap, Throw outside a Try, a non-empty $ECODE) inside the handler the trap still names, or a $ETRAP command that raises one. IRIS compiles it, and the error enters the same handler again, and so on without end. Clearing the trap first (Set $ZTrap = "") lets the error go up to the caller.

IRIS compiles the example.

ROUTINE Demo.TrapReenters
Main
    Set $ZTrap = "Fail"
    Set rate = ^Demo.TrapReenters("rate")
    Write rate, !
    Quit
Fail
    Write "no rate: ", $ZError, !
    ZTrap "RATE" //! A4344

All diagnostics