&gt; (any&#124;Promise)</code></td>
<td>No</td>
<td>A function that is called when the promise is rejected. The first parameter of this function is a value that represents the reason why the promise was rejected. If the return value of this function is not a Promise, it is used as the value for resolving <code>nextPromise</code>. If the returned value is a Promise, then value of <code>nextPromise</code> depends on the inner Promise&#39;s status. If this function throws, <code>nextPromise</code> is rejected 