Optional errorThe error object, if available
Optional filenameThe filename/URL where the error occurred
Optional handlerThe type of handler that caught the error (e.g., 'Error', 'UnhandledRejection')
Optional lineThe line number where the error occurred
The error message
Optional stackThe stack trace, if available
Information about an exception that can be used to determine if it should be ignored