Creates a new rejected promise for the provided reason.
Optional
The reason the promise was rejected.
A new rejected Promise.
Creates a new rejected promise for the provided reason.