10 examples of 'bluebird catch' in JavaScript

Every line of 'bluebird catch' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
92function rejectPromise(e) {
93 return reject(e);
94}
44catch(...args) {
45 return this.executor.promise().catch(...args);
46}
16catch(...args) {
17 this._promise = this._promise.catch(...args);
18 return this;
19}
266catch () {
267 return this
268}
64public catch(onrejected: (reason: any) => (PromiseLike|any)): Promise {
65 return this.promise.catch(onrejected);
66}
42public catch(callback: TRejector): CancelablePromise {
43 this._rejectors.push(callback);
44 return this;
45}
104catch(...args) {
105 if (!this._promise) throw new Error('You have to call Request::execute before you can access it as promise');
106 return this._promise.catch(...args);
107}
19export function handlePromiseRejection(promise) {
20 return promise.then(null, () => { /* swallow */ });
21}
32get promise(): Promise<a> {
33 return this.promise_;
34}</a>
212function failure(err) {
213 reject(err);
214}

Related snippets