try{ throw new Error(); } catch(e){ // handle } // this code will run, since you recovered from the error!