// just sample try catch javascript try { // doing some methods }catch (e) { // showing message or other proses you want console.log(e.message) }