throw vs the result

Dar Scott dsc at swcp.com
Sat Apr 30 19:58:12 EDT 2005


On Apr 30, 2005, at 5:31 PM, Andre Garzia wrote:

> my convention is:
> * Use return codes if the error is not a critical one. more like a 
> mistake then an error.
> * Use throw if the error is a karma-burning pyrotechinical mayhem from 
> hell.

I suppose if a library only used results you could do this:

    moveRobot robotName, plan
    if critical(the result) then throw "kbpm from hell"

Dar

-- 
**********************************************
     DSC (Dar Scott Consulting & Dar's Lab)
     http://www.swcp.com/dsc/
     A Sponsor of RevCon West
**********************************************



More information about the use-livecode mailing list