com.aspose.html.dom.events

Class ErrorEvent

    • Constructor Detail

      • ErrorEvent

        public ErrorEvent(Exception exception)

        Initializes a new instance of the ErrorEvent class.

        Parameters:
        exception - The exception.
      • ErrorEvent

        public ErrorEvent(ErrorEvent.ErrorEventInit eventInit)

        Initializes a new instance of the ErrorEvent class.

        Parameters:
        eventInit - The event initialization object.
    • Method Detail

      • getMessage

        @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.
      • getFileName

        @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.
      • getLineNo

        @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.

      • getColNo

        @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.

      • getError

        @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.