let tthrow = new Promise(function (resolve, reject) { try { throw new Error('error via throw') } catch (error) { reject(error) } }).then(function () { }).catch(function (error) { console.log('error', typeof error, error) })