← Back To API Reference

Promise.reject

Promise.reject(any error) -> Promise

Create a promise that is rejected with the given error.