use ex-info instead of RuntimeException
catch js/Error