eval { # code here that might throw exceptions # this is the form that you described }