Name of the type of error to catch such as 'RangeError', 'TypeError', 'DatabaseClosedError', etc.
The callback to execute when the Promise is rejected.
A Promise for the completion of the callback.
Catch errors where error => error.name === errorName. Other errors will remain uncaught.
Name of the type of error to catch such as 'RangeError', 'TypeError', 'DatabaseClosedError', etc.
The callback to execute when the Promise is rejected.
A Promise for the completion of the callback.
Catch errors where error => error instanceof errorConstructor. Other errors will remain uncaught.
Type of error to catch such as RangeError, TypeError, etc.
The callback to execute when the Promise is rejected.
A Promise for the completion of the callback.
Catch errors where error => error instanceof errorConstructor. Other errors will remain uncaught.
Type of error to catch such as RangeError, TypeError, etc.
The callback to execute when the Promise is rejected.
A Promise for the completion of the callback.
Attaches a callback to be executed when promise is settled no matter if it was rejected or resolved.
The callback to execute when promise is settled.
A Promise for the completion of the callback.
Apply a timeout limit for the promise. If timeout is reached before promise is settled, the returned promise will reject with an Error object where name='TimeoutError'.
Number of milliseconds for the timeout.
A Promise that will resolve or reject identically to current Promise, but if timeout is reached, it will reject with TimeoutError.
Catch errors where error => error.name === errorName. Other errors will remain uncaught.