Returns a single synchronous Promise instance that is already rejected with the given reason. Any chained operations will execute synchronously at the point of being added (eg. catch(); finally()).
catch()
finally()
The rejection reason
Returns a single synchronous Promise instance that is already rejected with the given reason. Any chained operations will execute synchronously at the point of being added (eg.
catch()
;finally()
).