@DOMObjectAttribute @DOMNameAttribute(name="ErrorEvent") public class ErrorEvent extends Event
The ErrorEvent
provides contextual information about an errors that occurred during runtime.
Modifier and Type | Class and Description |
---|---|
static class |
ErrorEvent.ErrorEventInit
Represents a dictionary that is having optional arguments for setting the details information about the event.
|
Event.EventInit
AT_TARGET_PHASE, BUBBLING_PHASE, CAPTURING_PHASE, NONE_PHASE
PropertyChanged
Constructor and Description |
---|
ErrorEvent(ErrorEvent.ErrorEventInit eventInit)
Initializes a new instance of the
ErrorEvent class. |
ErrorEvent(Exception exception)
Initializes a new instance of the
ErrorEvent class. |
ErrorEvent(Exception exception,
ErrorEvent.ErrorEventInit eventInit)
Initializes a new instance of the
ErrorEvent class. |
Modifier and Type | Method and Description |
---|---|
long |
getColNo()
The colno attribute must return the value it was initialized to.
|
Object |
getError()
The error attribute must return the value it was initialized to.
|
String |
getFileName()
The filename attribute must return the value it was initialized to.
|
long |
getLineNo()
The lineno attribute must return the value it was initialized to.
|
String |
getMessage()
The message attribute must return the value it was initialized to.
|
createDOMContentLoadedEvent, createError, createEvent, createEvent, createEventByType, dispatch, getBubbles, getCancelable, getCurrentTarget, getDefaultPrevented, getEventPhase, getTarget, getTimeStamp, getType, initEvent, isTrusted, preventDefault, setCurrentTarget, setEventPhase, setTarget, stopImmediatePropagation, stopPropagation
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
public ErrorEvent(Exception exception)
Initializes a new instance of the ErrorEvent
class.
exception
- The exception.public ErrorEvent(ErrorEvent.ErrorEventInit eventInit)
Initializes a new instance of the ErrorEvent
class.
eventInit
- The event initialization object.public ErrorEvent(Exception exception, ErrorEvent.ErrorEventInit eventInit)
Initializes a new instance of the ErrorEvent
class.
exception
- The exception.eventInit
- The event initialize.@DOMNameAttribute(name="message") public String getMessage()
The message attribute must return the value it was initialized to. When the object is created, this attribute must be initialized to the empty string. It represents the error message.
Value: The message.@DOMNameAttribute(name="filename") public String getFileName()
The filename attribute must return the value it was initialized to. When the object is created, this attribute must be initialized to the empty string. It represents the absolute URL of the script in which the error originally occurred.
Value: The filename.@DOMNameAttribute(name="lineno") public long getLineNo()
The lineno attribute must return the value it was initialized to. When the object is created, this attribute must be initialized to zero. It represents the line number where the error occurred in the script.
@DOMNameAttribute(name="colno") public long getColNo()
The colno attribute must return the value it was initialized to. When the object is created, this attribute must be initialized to zero. It represents the column number where the error occurred in the script.
@DOMNameAttribute(name="error") public Object getError()
The error attribute must return the value it was initialized to. When the object is created, this attribute must be initialized to null. Where appropriate, it is set to the object representing the error (e.g. the exception object in the case of an uncaught DOM exception).
Value: The error.