ErrorEvent - Web APIs | MDN
The ErrorEvent interface represents events providing information related to errors in scripts or in files. Also inherits properties from its parent . Is a containing a human-readable error message describing the problem. Is a containing the name of the script file in which the error occurred.
https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent