Using TRY as an Expression

When you use TRY to invoke an expression or to make a typed procedure call, TRY itself is treated as an expression that returns a value. For example, the following statement invokes typed procedure PROCA and stores the result in RSLT. If PROCA incurs an error, a value of -1 is stored in RSLT.

RSLT := TRY PROCA ELSE -1;