Exceptions: Difference between revisions

Content added Content deleted
Line 285:
=={{header|Factor}}==
===Throw Exceptions===
"Install Linux, Problem Solved" throw
 
TUPLE: velociraptor ;
\ velociraptor construct-emptynew throw
 
Or a shorthand for this:
ERROR: velociraptor ;
velociraptor
 
TUPLE: velociraptor ;
\ velociraptor construct-empty throw
===Catch Exceptions===
! Preferred exception handling