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:
Try, an offset in a trap label, or a block in braces after an
argumentless If;New of a special variable other than $ESTACK, $ETRAP, $NAMESPACE or $ROLES;Goto @target, a Goto or Do with an offset to one of its
labels, or a $ZTRAP value that is not a literal label of its own.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
}
}