{}, (e) => console.error("Error catcher 1 => ", e))
.catch((e) => console.error("Error catcher 2 => ", e))
promiseObj
.catch((e) => console.error("Error catcher 2 => ", e))
.then(() => {}, (e) => console.error("Error catcher 1 => ", e))">
{}, (e) => console.error("Error catcher 1 => ", e))
.catch((e) => console.error("Error catcher 2 => ", e))
promiseObj
.catch((e) => console.error("Error catcher 2 => ", e))
.then(() => {}, (e) => console.error("Error catcher 1 => ", e))">
{}, (e) => console.error("Error catcher 1 => ", e))
.catch((e) => console.error("Error catcher 2 => ", e))
promiseObj
.catch((e) => console.error("Error catcher 2 => ", e))
.then(() => {}, (e) => console.error("Error catcher 1 => ", e))">
const promiseObj = new Promise((resolve, reject) => {
setTimeout(() => reject("some error"), 1000);
})
promiseObj
.then(() => {}, (e) => console.error("Error catcher 1 => ", e))
.catch((e) => console.error("Error catcher 2 => ", e))
promiseObj
.catch((e) => console.error("Error catcher 2 => ", e))
.then(() => {}, (e) => console.error("Error catcher 1 => ", e))