ascot diagnostics

A4304

Error: {what} is not allowed in {context} (IRIS: {iris})

The marked form is one IRIS does not allow where it stands. IRIS refuses to compile:

Two forms compile but fail when they run: ZQUIT in a procedure block with private variables raises <COMMAND>, and $ZTRAP among several Set targets raises <UNIMPLEMENTED>. Use a form IRIS accepts there.

IRIS rejects the example.

Class Demo.NotAllowedIn
{

ClassMethod Parse(text As %String) As %Integer
{
    Try {
        Set $ZTrap = "Fail" //! A4304
        Return +text
    } Catch ex {
        Return -1
    }
Fail
    Return 0
}

}

All diagnostics