The following block construct seems to work to
catch errors from the interpreter:
;======================================
if error? set/any 'err
try
[ "Good Code Block"
  x: "a" + 1
]
[ "Error Block"
  err: disarm err
  print reform bind (get in (get in system/error err/type) err/id) in err
'type
]
Two questions arise from this
1)Are there associated error numbers that I can trap and 
  thus change the syntax of the error message itself?
2)Is there a way in which I can explicitly force control to
  be transferred to "Error Block", with an attendant error message.
I have looked at docs for "throw" and don't find a clear answer
there.

Thanks
Tim

Reply via email to