The onerror property of the Notification interface specifies an event listener to receive error events. These events occur when something goes wrong with a Notification (in many cases an error preventing the notification from being displayed.)
Notification.onerror = EventListener;
A function which serves as the event handler for the error event. When an error occurs, the specified function will be called. If null, no error handler is in effect.