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.
92 function rejectPromise(e) { 93 return reject(e); 94 }
44 catch(...args) { 45 return this.executor.promise().catch(...args); 46 }
16 catch(...args) { 17 this._promise = this._promise.catch(...args); 18 return this; 19 }
266 catch () { 267 return this 268 }
64 public catch(onrejected: (reason: any) => (PromiseLike|any)): Promise { 65 return this.promise.catch(onrejected); 66 }
42 public catch(callback: TRejector): CancelablePromise { 43 this._rejectors.push(callback); 44 return this; 45 }
104 catch(...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 }
19 export function handlePromiseRejection(promise) { 20 return promise.then(null, () => { /* swallow */ }); 21 }
32 get promise(): Promise<a> { 33 return this.promise_; 34 }</a>
212 function failure(err) { 213 reject(err); 214 }