try { myroutine(); } catch { handle_error($_); };