W3cubDocs

/Bluebird

.catchReturn

.catchReturn(
    [class ErrorClass|function(any error) predicate],
    any value
) -> Promise

Convenience method for:

.catch(function() {
   return value;
});

You may optionally prepend one predicate function or ErrorClass to pattern match the error (the generic .catch methods accepts multiple)

Same limitations regarding to the binding time of value to apply as with .return.

© 2013–2017 Petka Antonov
Licensed under the MIT License.
http://bluebirdjs.com/docs/api/catchreturn.html