Attaches a callback for only the rejection of the Promise.
method
child_process.PromiseWithChild.catch
onrejected?: null | (reason: any) => TResult | PromiseLike<TResult>
): Promise<T | TResult>;
@param onrejected
The callback to execute when the Promise is rejected.
@returns
A Promise for the completion of the callback.