Promise.prototype.catch

GPTKB entity

Properties (12)
Predicate Object
gptkbp:instanceOf Function
gptkbp:canBe gptkb:Promise.prototype.finally
gptkbp:description Returns a Promise and deals with rejected cases only.
gptkbp:handles Handles errors in asynchronous operations.
https://www.w3.org/2000/01/rdf-schema#label Promise.prototype.catch
gptkbp:introduced ECMAScript 2015 (ES6)
gptkbp:language Promise.prototype.catch(onRejected)
gptkbp:partOf Promise API
gptkbp:relatedTo Promise.prototype.then
gptkbp:respondsTo A Promise.
gptkbp:setting onRejected
gptkbp:uses promise.catch(error => console.error(error));