ErrorEvent - Web APIs | MDN
The ErrorEvent interface represents events providing information related to errors in scripts or in files.