ErrorEvent

open class ErrorEvent(val type: EventType<ErrorEvent>, init: ErrorEventInit = definedExternally) : Event(source)

The ErrorEvent interface represents events providing information related to errors in scripts or in files.

MDN Reference

Constructors

Link copied to clipboard
constructor(type: EventType<ErrorEvent>, init: ErrorEventInit = definedExternally)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val colno: Int

The colno read-only property of the ErrorEvent interface returns an integer containing the column number of the script file on which the error occurred.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val error: JsAny?

The error read-only property of the ErrorEvent interface returns a JavaScript value, such as an Error or DOMException, representing the error associated with this event.

Link copied to clipboard
Link copied to clipboard

The filename read-only property of the ErrorEvent interface returns a string containing the name of the script file in which the error occurred.

Link copied to clipboard
Link copied to clipboard
val lineno: Int

The lineno read-only property of the ErrorEvent interface returns an integer containing the line number of the script file on which the error occurred.

Link copied to clipboard

The message read-only property of the ErrorEvent interface returns a string containing a human-readable error message describing the problem.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val type: EventType<ErrorEvent>

Functions

Link copied to clipboard
open override fun asInit(): ErrorEventInit
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard